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-23-2021 06:19 AM
steps you can try
- Use "Look up Records" action for sc_task table to find all records that matches the request_item.
- Use action "For each item in" above results
- Use action "Wait for condition" where Active is false.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 07:27 AM
Thanks for response Ankur. I am actually looking this for Change Task. For Change task, I do not see a relationship in Change table. On Change Task, there is a Parent relationship to Change hence Wait for Condition on Change table is not working as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 07:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 07:36 AM
Hi,
when you use data pills what it shows?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader