How to update flow designer If all SC tasks closed complete then only RITM will be closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 09:33 PM
Hi All,
Please suggest below requirement,
How to update flow designer If all SC tasks (automation and manual tasks) closed complete only then RITM state will be closed complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 10:56 PM
It's not easy to tell you how to update something of which you are not sharing the way you configured it.
Next to that: it will be nearly impossible to do this with manual tasks as well. If the last task is a manual one, it's not known by the flow that it will be created after closing the second to last task.
But in your flow, put a check condition after each task that has been created: once it is closed, validate if there are no more tasks for this RITM. If there aren't any more, close the RITM, if there still are, the check on those will take care of that.
You could also go for the old-school solution: a BR on sc_task that triggers on close. It checks for any sc_task records on the same RITM and if there aren't any, it sets a (hidden) checkbox on the RITM record like 'all tasks closed' and in your flow you add a wait for this field to become true and close the RITM.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 11:45 PM
Hello @ashok17 ,
Please refer below community link for your requirement-
If my answer solves your issue, please mark it as Accepted ✔️ and Helpful👍 based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 12:24 AM
Hi,
Thanks for response and my requirement was in the RITM someone was created manual task also then how we will update flow part for this, means if all SC tasks closed complete only RITM state should be closed complete.