Flow Designer - Wait for Condition action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 06:39 PM
Hi,
I'm building a flow designer that gets trigger from a catalog item. Once the catalog item gets created it creates a Task. The task has a question that needs to be completed by the assignment group. Now, I want to create a logic in the flow that waits for the task to be close or for the variable completed. If the variable is completed I don't need to wait for the catalog task to continue.
I tried to a Do in parallel where I have two branches. The first is waiting to the variable gets completed and the second branch for the task to be completed. Is not working becasue the wait for conditions needs to happen on both branches before move on.
I created a a flow variable to set it True on each of the branch, but because of the waiting is not working.
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 06:50 PM
why not do this?
1) don't set Wait checkbox on Catalog task flow action
2) After the catalog task Do Until and wait to see if it's either completed or that variable is populated
3) when either condition satisfies it will break the Do Until and then you can continue further
Do the following until flow logic
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 06:57 PM - edited 03-08-2025 07:27 PM
Hi @Ankur Bawiskar ,
I don't have the wait checkbox checked at the task level. I did tried Do until, but I need to add the wait condition, if not the flow will loop and will error out becausue it will reach the maximun. (max iteration limit exceeded)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 07:31 PM
then try this
1) have a hidden variable in your catalog form and set it with false
2) now whenever task gets closed set this variable as true using before update business rule
OR
3) whenever the other variable gets filled set this variable as true via business rule
4) then in your flow wait on this new hidden variable and then continue the logic
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 07:37 PM - edited 03-08-2025 07:42 PM
Hi @Ankur Bawiskar, let me try that. The thing is that I don't want to close the task if I complete the variable. But I think I will need to take that aproach.
If that doesn't work, I will have to close complete the task , and the evaluated if the variable is empty or not.