Wait for Condition for Multiple Change Tasks

Anshul Agarwal
Tera Expert

I am developing a flow using Flow Designer. I have a requirement where I need to check if all the tasks in the change are closed before we move to the next step in the Flow. I am trying to use "Wait for Condition" but I am not able to get it working. In my case, number of tasks could be dynamic and for a change there could be either 1 or 2 or 3 tasks. Because of this, I cannot select the Task Record in Wait for Condition as I don't know how many change task records are there. I tried creating a script in wait for condition but that also is not working:

 
Tried Look Up Records to filter all the Tasks in a change and then use For Each loop but again got stuck at wait for condition below:
 
find_real_file.png
Any suggestions on this?

 

6 REPLIES 6

Same error as above Ankur...It does not allow me to put Change Task record.

@Anshul Agarwal 

I have shared a working example below using flow designer

Close parent incident when all child incidents are closed

you can enhance it for your CHG task and CHG table

If all child incident is closed then after Parent incident should be closed. How to achieve through ...

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader