How to redirect aproval to manager of specific group

gunishi
Tera Guru

Hi all, 

 

I have a requirement for a CI:

 

• Once request is submitted approval should go to Manager of the group ‘Food Warriors’.

 

How would I go about this on flow designer and workflow? (I am trying to create both a flow and a workflow for practice)

 

Any help would be much appreciated as I am really struggling with flow designer and workflow editor in general. 

 

Kind regards, 

G

1 ACCEPTED SOLUTION

yes, what I mentioned is in Flow Designer.

in Workflow we need to use Approval user activity and with in that you need script something like

var getMgr = new GlideRecord("groups table");

getMgr.addQuery('name','you group name') ;

getMgr.query();

 

if(getMgr.next()){

answer.push(getMgr.manager_field_name);

}

 

script might not be completly correct modify it according to your need. Also try in your PDI first and in our instance.

 

Please Mark my answer as correct if it helps

View solution in original post

4 REPLIES 4

ursnani
Giga Guru

Hi @gunishi 
You can try the Step "Look up Record" with the group and in the next approval activity you can get the Manager of group from the previous record lookup Step

 

 Please Mark my answer as correct if it helps

Hi @ursnani 

 

Thank you for your response. Is this on flow designer then? and is there a workflow activity which is similar to this?

 

Thank you again, 

G

yes, what I mentioned is in Flow Designer.

in Workflow we need to use Approval user activity and with in that you need script something like

var getMgr = new GlideRecord("groups table");

getMgr.addQuery('name','you group name') ;

getMgr.query();

 

if(getMgr.next()){

answer.push(getMgr.manager_field_name);

}

 

script might not be completly correct modify it according to your need. Also try in your PDI first and in our instance.

 

Please Mark my answer as correct if it helps

Hi @ursnani 

 

This is brilliant, thank you so much. 

 

Kind regards, 

G