How can w use wait for condition in flow designer for variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 12:53 AM
I have one variable return date on catalog item and I am using flow designer for my catalog item,
After closing one task I am putting RITM into pending requester and that time one variable will visible for user " return date" and when he will submit value in that variable then I have to set RITM as work in progress and I have to create new task.
Above requirement I am trying to achieve wait for condition but there I am not getting variable value
I want to check if return date is not empty then I can move forward my flow.
Can someone help me please??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 03:33 AM
Hi Anil ,
Thanks for your suggestion I did same as you mention above.
But My flow stuck in until condition even after I submit return date it is not going forward.
And it is showing error beside do following.
Regard
Lucky

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 06:15 AM
Hi @lucky24
Actually the Do...Until loop is getting terminated after 1000 iteration and it is throwing error.
I have followed below steps and now it is working fine.
1. Use lookup Record Action to query 'sc_item_option_mtom' table and get the variable ownership record for your variable 'Return Date'.
2. Once you get Variable ownership record in next step use another look up to get Variable value Record from 'sc_item_option' table.
3. Use Wait for condition on 'sc_item_option' table and select 2nd lookup record as reference record.
Add condition 'Value is Not empty'
I hope you will be able to make it work, same is working for me.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 07:23 AM
Hi Anil,
Thanks for helping.
I got the solution and It is working through wait for condition.
In wait for condition I select in dropdown
Thanks for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 07:28 AM
that's what I mentioned above.
you should be able to have that in condition directly.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2023 07:55 AM
Sorry I was not know how to use variable in wait for condition.