Approval in flow with script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Is there anyway to script who the approvers are in Flow ask for approval like you could in workflow? I don't see anywhere in ask for approval where I can set the approvers based on a script. I need to setup the approval in our agile module based on the CI that are added to the Affected CIs related list for the story. I need to have the approval rule that all must approve but if one rejects it is rejected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Brian Lancaster ,
To dynamically assign approvers, you can implement a subflow that retrieves the change_control field from each CI in the task_ci table. This approach mimics the Group Approval functionality in workflows, ensuring that each group must approve independently, and if any member of a group rejects, the entire request is rejected....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Can you provide more clarity? The users in each CI will be in the owned by field. I also need to be able to tell when it returns no approvers as we are piloting this with a subset of CIs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Brian Lancaster
Just check out the below community article. It may help you.
Scripted Approvals in Flow Designer with Flow Variables
Regards,
Siva

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I'm not sure how to adapt this when it is not Service Catalog.