- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 08:28 PM
I need to rebuild a workflow as a flow, and I'm up to recreating the approvals in flow designer, but it seems like flow designer doesn't allow for the same functionality that workflow editor.
The workflow approval I'm trying to recreate has the approval condition "Wait for: An approval from each group", and I can't find a corresponding approval rule in flow designer.
The workflow approval also includes an advanced groups script that includes code to push groups from a related list as approval groups, but I can't find a field to add code to the Ask For Approval action.
Any ideas how to add this functionality via flow designer?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 11:20 PM
Hi @Abbottronix
You can toggle scripting on for Approval Rules in Ask for Approval Action in a flow by clicking on toggle scripting button. Refer below screenshot :
For your requirement, you can script the approval rule by referring below link :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 08:41 PM
Hi @Abbottronix ,
The action "Wait for: An approval from each group" is not available in Flow Designer. However, you can create the flow in such a way that first you use the script action to get all the groups then use "For each" loop to traverse through each group to trigger approval records using "ask for approval" action and in its rule you make sure to use "Approve" when "anyone approves" from the group.
Please mark my answer "Helpful" if you feel that it has helped you in any way.
Thanks and Regards,
K. Sai Charan
Sr. ServiceNow Developer
Deloitte India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 11:20 PM
Hi @Abbottronix
You can toggle scripting on for Approval Rules in Ask for Approval Action in a flow by clicking on toggle scripting button. Refer below screenshot :
For your requirement, you can script the approval rule by referring below link :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.