The CreatorCon Call for Content is officially open! Get started here.

Approval in flow with script

Brian Lancaster
Tera Sage

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.

6 REPLIES 6

kaushal_snow
Mega Sage

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.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

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.

J Siva
Kilo Patron
Kilo Patron

Hi @Brian Lancaster 
Just check out the below community article. It may help you.
Scripted Approvals in Flow Designer with Flow Variables

 

Regards,
Siva

I'm not sure how to adapt this when it is not Service Catalog.