- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 01:29 AM
Hi All,
I have an approval group with a number of members for different companies within the parent organisation. When a user from company A submits a request an approval is created and a notification is triggered to all members of the approval group.
I would like to only create approval records for the approval group members that are in the same company as requester
Is there a way to accomplish this?
Appreciate any recommendations.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 03:40 AM
Hello @Eli7, You can create a custom Flow Action and place before Ask for Approval activity in Flow, which will take Approval Group and Requested for as an Input.
Custom Action Configuration:
Create 2 input Variable as below:
- Add a Script Step and create 2 input variable for step, then map Input variable of Action to Step Input Variable.
- in the Script body, write a script to get users from the selected group where Requested for company matches.
- Create an output variable and pass user sys_id array as highlighted below.
- Create a List type Action output variable and map Step Output to Action Output variable
Drag and drop output of Action to Ask for Approval approvers field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 03:40 AM
Hello @Eli7, You can create a custom Flow Action and place before Ask for Approval activity in Flow, which will take Approval Group and Requested for as an Input.
Custom Action Configuration:
Create 2 input Variable as below:
- Add a Script Step and create 2 input variable for step, then map Input variable of Action to Step Input Variable.
- in the Script body, write a script to get users from the selected group where Requested for company matches.
- Create an output variable and pass user sys_id array as highlighted below.
- Create a List type Action output variable and map Step Output to Action Output variable
Drag and drop output of Action to Ask for Approval approvers field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2023 07:11 AM
Hi Pravindra,
It works perfectly Thanks a ton! 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 03:48 AM
Hi Pravindra,
This is awesome. I will try this and revert!