Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Approval using for each in flow design

2022_ServiceNow
Tera Expert

Hi All,

There's a variable with type as list collector, users can select multiple servers. Based on the servers selected, it should trigger the approval for the server owner. I have a flow design along with the subflow.

This is in the flow:

2022_ServiceNow_0-1699512718858.png

This is the subflow:

2022_ServiceNow_1-1699512770862.png

2022_ServiceNow_2-1699512799093.png

 

2022_ServiceNow_3-1699512822911.png

After submitting the request, in the flow context:

2022_ServiceNow_4-1699512878869.png

 

Please help me in resolving this issue. Thanks in advance.

@Ankur Bawiskar @Sandeep Rajput @Dr Atul G- LNG @Hemanth M1 @pavankumar17 @Anurag Tripathi @AshishKM 

 

 

8 REPLIES 8

Hi @2022_ServiceNow 

You're using Look Up Record, the correct one is Look Up Records😋

Screenshot 2023-11-09 at 16.16.54.png

 

Cheers,

Tai Vu

@Tai Vu , Thank you. This is working now. But it's triggering the approval, one after another, is it possible to trigger approval parallelly for all the approvers?

2022_ServiceNow_0-1699523416070.png

But once everyone has approved the request, the flow is not going to the next action

2022_ServiceNow_1-1699523498514.png

 

 

 

Hi @2022_ServiceNow 

Why not? There you go!

TaiVu_0-1699525914031.png

 

Just collect the Approver sys_id. Then do Look Up Records to User [sys_user] table.

Drop the User Records into the Ask for approval step.

 

 

Cheers,

Tai Vu

 

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @2022_ServiceNow  

 

experts are already on top of this 🙂 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************