How to wait for a flow based on the variable's value provide from the RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi,
I am currently working on a scenario in Flow Designer and have run into an issue. I want the flow to wait until a value is provided in the subcategory variable.
Here’s the use case:
- The flow creates a task for a particular business function.
- In the subcategory, agents provide values after the RITM is created.
- If the agent selects “Payment Request”, then an approval should trigger first, followed by the creation of an SC task.
- If the agent selects any other subcategory, only the task should be created (without approval).
I am trying to figure out whether I can use a wait condition or if there’s a better approach to ensure the flow waits until the subcategory value is provided.
Any guidance or suggestions would be greatly appreciated.
Thanks in advance,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
Hi @zee15 ,
I think you should use wait for condition. It is designed for such scenarios.
Wait for - subcategory is not empty
if subcategory == "Payment Request"
--- Request approval
--- call subflow of sc task
else
--- call subflow of sc task
Regards,
Dhanashree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @zee15,
------------------------------------------------------------------------------------
You can use Wait for Condition action in your flow like this ->
and then provide a condition -> Subcategory is not empty
Let me know if you need further help
--------------------------------------------------------------------------------------------------------------
Please mark my response helpful and accept as solution
Thanks & Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
this link has approach from Anil lande on how your flow can wait till that variable is updated and once updated/filled, you can break the loop and proceed
How can w use wait for condition in flow designer for variable?
Also an easier solution is shared there in the same above link, below is the image, it will wait till that Variable is empty, once not empty it will proceed
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