WorkFlow - When Group Owner changes, find Department Name of New Owner

slwbid
Mega Contributor

I have a workflow started.  Got the trigger down pat:

1- Group updated where Owner Changes

Then I need to:

2- Look up the department name of the new owner

3 - Set Group.Parent = NewOwner.Dept.Name

 

I have tried, but been unsuccessful for steps 2 and 3.

 

Any help appreciated

GhostRider

 

Note: I have already created the necessary Parent Groups and are named verbatim like the relevant Department names

 

1 REPLY 1

Brad Bowman
Kilo Patron

It would help to show your attempt.  It sounds like you can use a Lookup Record activity to lookup the user from the trigger group manager or whatever field. That will be a sys_id, so the the lookup on sys_user is where sys_id = the data pill.  Then you need to do another Lookup Record to lookup the group record that matches the Name of the department data pill from the user lookup so that you can then do an Update Record on the trigger record to set parent = that lookup, since it has to be a sys_id.