We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Generate 4th task only when all 3 parallel task state is closed complete

Sonali01
Tera Contributor

Sonali01_0-1782329784187.png

Please help me achieve how I can generate 4th task when all 3 parallel task gets status is closed complete.

Thanks

5 REPLIES 5

Kieran Anson
Kilo Patron

Have you selected the "wait" option on each of those task steps? If you set "wait" as true for each action inside the parallel branch, SN will wait for them all to complete 

Sonali01_0-1782481467288.png

Hello Kieran this what I'm doing and its  not working, can you pleas tell me the exact steps.
Thanks

Aanchal Agarwa1
Tera Expert

Hey,

 

You can achieve this using Action → Wait for Condition in Flow Designer. Here's how:

  1. Create your 3 parallel tasks using the parallel branch action as you normally would

  2. After the parallel branches, add a new Action step

  3. Select Wait for Condition — set the condition to wait until all 3 task records have State = Closed Complete

  4. Once the Wait for Condition resolves true, add your 4th task creation as the next action after it

 

 

Red: https://www.servicenow.com/community/developer-forum/how-to-configure-wait-for-condition-in-flow-des...

 

Thanks

Tanushree Maiti
Tera Patron

Hi @Sonali01 

 

 If any active task found,

   Create wait for condition, active of that task is false.

   Create 4th  task

 

Refer: 

Flow - How to properly wait for ALL sc_task records to be completed? 

KB0960520 When using multiple 'Create Task' Activities. The 'Wait for completion' property is comple... 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti