Need help with Approval Rulesets in Flow Designer

Rajini2
Mega Sage

I have a catalog request, trying to send approvals to a list of users. The approval list may contain repeated users.

Example: Lisa, Lisa, Lisa, Tom, Tom

 

I used this script in my flow, but the approvals are sent to the unique list: Lisa, Tom (avoiding repeated approvals). 

var approvers = fd_data.flow_var.var_access_approver;
return "ApprovesResU["+approvers+"]OrRejectsAllU["+approvers+"]";

 What should I do if I want approval request to send to all the users?

 

Ref: Scripted Approvals in Flow Designer with Flow Vari... - ServiceNow Community

5 REPLIES 5

Kieran Anson
Kilo Patron

Why are you needing someone to approve something multiple times at the same stage? Are you actually needing to stagger these approvals into different approval levels?

Each approval is to access a resource. multiple resources are requested in this form.

But if the approvals are all in one request variable, how do you know which approvals are for which resource?

Rajini2
Mega Sage

I am updating the approval short description with the resource name.

 

I have a list collector for Resources. My flow has a for-each loop, that iterate through each resource and sends approval, also updating the short description, approval type.