How to run approvals concurrently in flow using array from API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 01:27 PM
We currently have a flow that is making a call to pull role approvers from another tool. We receive that response and then create flow variables to send the approvals to. We need to set up the ask approval action to allow any one user from each group we pull back to approve or reject.
We need the approvals to happen concurrently and if a single user from any one of the groups rejects the request, it should be rejected. Alternately, only one user from each of the groups needs to approve and all others in that group when then be marked as no longer needed.
The attached document provides further details with images.
Thank you in advance for the assistance.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2022 09:27 AM
To add a bit more to this, we attempted to use scripting to accomplish the concurrent approvals with partial success.
Is we include the following script, the approval gets assigned to all users needed. If one user approves/rejects the RITM, the others are no longer required; working as intended.
var approvers = fd_data.flow_var.approval_l1;
return "ApprovesRejectsAnyU["+approvers+"]";
However, if we add the second variable and one user approves the RITM, the others are not updated to no longer required.
var approvers = fd_data.flow_var.approval_l1;
var approvers2 = fd_data.flow_var.approval_l2;
return "ApprovesRejectsAnyU["+approvers+"]"&AnyU["+approvers2+"]";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2023 06:26 PM
Hi Cassandra,
Did you ever come up for a solution for this?
Our prod instance is currently on San Diego, and we are moving to Utah shortly.
We use the "Ask for approval" flow action, and use the scripted rules as per what you have done. Currently in Prod (San Diego) this works successfully, we can return multiple concurrent approval groups at once, and they get handled individually correctly. But now in our test instance which has been upgraded to Utah (skipped thru Tokyo), The behaviour isn't the same, and its similar to what you are advising. When the first approval occurs, the rest of the group approvals no longer move to "No Longer Required", and stay requested until the other group's have been approved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2024 10:17 PM
I know this is old, I also have this need and i just found this:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0964016
I haven't tried yet but will report back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2024 10:22 PM