How to update state of the TASK based on previous task using Flow designer?

SpartanW
Tera Contributor

Hello, everyone.

 

I created a flow designer and generated three tasks at once, in the order of 1 to 3.

The first task is in an open state, and the rest are pending state while being created.

I want to update the state to Open for the 2nd task when the previous or first task is completed and it should continue.

How can we do using Flow Designer?

See the attachment picture.

SpartanW_0-1750427246042.png

Thanks.

7 REPLIES 7

@SpartanW 

somewhat difficult to handle in flow, business rule would be easy

for flow logic check approach from @Ehab Pilloor 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@SpartanW 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ehab Pilloor
Mega Sage

Hi @SpartanW,

You can do this in Flow.

Add all the tasks sequentially (dont add do in parallel) and uncheck wait checkbox in all tasks. 

After 3rd task, add (Task 1 = Complete) and (Task 2 is complete) If conditions and inside them, update Task state of next proceeding task.

Also add a Wait for condition in the end to avoid ending Flow when Tasks are not Completed

If it is not working as expected, try adding Wait for conditions for task to be closed or cancelled before moving on to if conditions

Regards,

Ehab Pilloor