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

Arun61
Tera Contributor

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

Hi @Arun61 

 

Move the "wait for condition" within the for each logic where you are iterating the catalog task records. And outside the for each item , add your if and else logic condition

 

FYR: 

Vengadesh_0-1716456727099.png

From my POV , this might works.If not kindly let me know

 

Thanks 

Vengadesh

Arun61
Tera Contributor

Hi 

Thanks you, it is working fine when all tasks are fulfilled but when any task state in incomplete then RITM state is not setting as incomplete

Hi @Arun61 ,

To achieve this scenario, once all the tasks get closed again perform a "Lookup records" based on a condtion " State is one of Closed Incomplete , Closed cancelled " . And add an "If " logic and check if the lookup count is greater than 1 , update the record as close incomplete else update them as Closed complete.

Hope this might works for your scenario 

Thanks

Vengadesh

 

Community Alums
Not applicable

Hi @Arun61 ,

 

You can use flow variables & assign that flow variable to some value. Use the if to check flow variable value and update RITM status accordingly.

 

If the catalog tasks are parallel then you can even use wait for condition to wait for all the tasks to be fulfilled & update RITM status after that.

 

I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.