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 close all the tasks which was created based on multi variable set

Community Alums
Not applicable

How to close all the tasks which was created based on multi variable set 

 

we have a multi variable set when user added 5 records then based on records tasks should get created. i have created a flow designer based on the variable set. i am creating multiple tasks by using for each activity in flow but i am not able to fulfil the RITM 
Eg. if i added 2 record and submitted then two tasks are creating but when i close the first task RITM is fulfilling.  but my requirement is ones after the both task are fulfilled or incomplete them RITM state should change.

Arun61_0-1716220446668.png

 

Arun61_1-1716220695393.png

 

 

8 REPLIES 8

Vengadesh
Tera Guru

Hi @Community Alums ,

 

Your logic is correct. Move the "If " condition outside the for each logic and try again it will works as expected

 

Try this and let me know if works

Regards

Vengadesh

Community Alums
Not applicable

Hi Vengadesh,

 

Thank you for your replay. i tried what you have suggested but that is not helping 

if there are three tasks created if i close the first task then immediately RITM is fulfilling can you please help in this 

Hi @Community Alums , 

 

Could you able to share a screenshot of the modified flow and also kindly explain what you did with the if condition

Community Alums
Not applicable

Arun61_0-1716440839610.png