- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 03:31 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 04:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 03:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 04:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 04:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 01:06 AM