From List Collector variable having list of users and need to send approvals to users managers

MGR
Tera Contributor

Hi All,

I am have requirement in a catalog items there is list collector variable if we select list of users then send approvals to users managers using flow designer.

4 REPLIES 4

AnveshKumar M
Tera Sage
Tera Sage

Hi @MGR ,

 

For illustration purpose, the user variable in catalog is "Select users (select_users)" and the type specification is as shown in the below screenshot.

AnveshKumarM_1-1678426341140.png

 

AnveshKumarM_2-1678426371527.png

 

Now create a flow as shown in the screenshots below.

 

AnveshKumarM_3-1678426414364.png

 

AnveshKumarM_4-1678426467383.png

 

AnveshKumarM_5-1678426597596.pngAnveshKumarM_6-1678426668623.png

AnveshKumarM_7-1678426772334.png

 

Note: This will trigger the Approval and waits for the approval request to be completed to trigger the approval for next user manager.

 

If you want to trigger the Approvals Simultaneously to all the user managers, you can move the step 3 to a sub flow with User record and RITM as inputs and Approval status as outputs, like the one below.

AnveshKumarM_11-1678427042184.png

 

AnveshKumarM_8-1678426977632.png

 

AnveshKumarM_9-1678426995816.png

 

AnveshKumarM_10-1678427020966.png

 

And use this sub flow in the main flow in place of step3 as shown below.

 

AnveshKumarM_12-1678427160997.png

 

 

Thanks,

Anvesh

 

Thanks,
Anvesh

Hi Anvesh,

Am getting this error after executing flow>

MGR_0-1678458215634.png

 

Hi @MGR

Can you share the flow screen shots, if possible. 

 

Thanks, 

Anvesh

Thanks,
Anvesh

Hi @AnveshKumar M ,

I tried with your solution using the subflow.

But in the for each, its showing zero even though I have selected multiple names. Can you please help me with this?

2022_ServiceNow_0-1699510500077.png