Wait for Condition for Multiple Change Tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 06:01 AM
I am developing a flow using Flow Designer. I have a requirement where I need to check if all the tasks in the change are closed before we move to the next step in the Flow. I am trying to use "Wait for Condition" but I am not able to get it working. In my case, number of tasks could be dynamic and for a change there could be either 1 or 2 or 3 tasks. Because of this, I cannot select the Task Record in Wait for Condition as I don't know how many change task records are there. I tried creating a script in wait for condition but that also is not working:
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2021 06:13 AM
Same error as above Ankur...It does not allow me to put Change Task record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2021 01:03 AM
I have shared a working example below using flow designer
Close parent incident when all child incidents are closed
you can enhance it for your CHG task and CHG table
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader