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.

How to create flow once task is closed in another flow

Gopal14
Tera Contributor

Hi Team,

 

I have a flow, In that flow I have two tasks, once the two tasks got closed, I need to create another flow, with different actions.

 

How to add two tasks closed condition in flow or subflow to create new flow, based on the task closer

7 REPLIES 7

MizukiNakanish
Tera Expert

Hi Gopal, 

To create a new flow that triggers when two tasks are closed, follow these steps:
・Create a Subflow: Make a subflow that will check if both tasks are closed.
・Add a Wait Condition:
 ‐ Use the "Wait for Condition" action to monitor the task status. Set the condition to check if both tasks are marked as "Closed."
・Trigger the New Flow: Once both tasks are closed, use the "Create Flow Data record" action to start your new flow with the required actions.
・Link the Subflow: Call this subflow from your main flow after the tasks are created.

Hi @MizukiNakanish ,

 

What I need to give in Input and output?

 

How can I check this "Make a subflow that will check if both tasks are closed."

 

Gopal14_0-1729148531310.png

 

Can you use multiple "Wait for Condition" actions and, within each action, select an already created task to check if its state is closed?
MizukiNakanish_0-1729152198153.png

 

Hi @MizukiNakanish 

 

Do I need to create tasks again in subflow?