How to close all the tasks which was created based on multi variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 09:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:32 AM
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:
From my POV , this might works.If not kindly let me know
Thanks
Vengadesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 05:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 06:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 12:03 AM
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.