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.

What condition to be used in Flow for multiple child task closure

Naushad1
Tera Contributor

Hi All,

 

I have a situation where I want to create couple of catalog tasks under RITM once initial 8 catalog tasks are completed through Flow.

I am not sure what condition to apply to be able to check if all tasks are closed to be able to create new tasks.

Order 1 : Create 8 tasks.

Order 2 : Create 2 tasks.(Upon closure of above 8 tasks)

Update RITM once all tasks are closed.

 

Has anyone been in this situation? Any suggestions?

Thank you so much for your help in advance.

1 ACCEPTED SOLUTION

Bernd Hoffmeier
Kilo Sage

You can do this with Flow Designer and a "Do the following in Parallel" Flow Logic. So you create the first 8 tasks in parallel and have all set to "Wait". The flow will wait until all of them are closed, then you can create your next tasks.

Bernd7_0-1707393482478.png

 

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Naushad1 

 

You can do this via Lookup record way and once all 8 closed then create 2 more task.

*************************************************************************************************************
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]

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

_Gaurav
Kilo Sage

@Naushad1 
In that case, you need to check the count of active tasks on every update updation made on sc_task where the parent is the same as RITM.
If you get count as 0 then you can create the remaining 2 tasks else not.