How can w use wait for condition in flow designer for variable?

lucky24
Tera Contributor

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 

 

lucky24_0-1691135533422.png

 

I want to check if return date is not empty then I can move forward my flow.

Can someone help me please??

 

18 REPLIES 18

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.

lucky24_0-1691145019168.png

And it is showing error beside do following.

lucky24_1-1691145206956.png

 

Regard

Lucky

 

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'.

Screenshot 2023-08-04 at 6.32.46 PM.png

2. Once you get Variable ownership record in next step use another look up to get Variable value Record from 'sc_item_option' table.

Screenshot 2023-08-04 at 6.37.03 PM.png

 

3. Use Wait for condition on 'sc_item_option' table and select 2nd lookup record as reference record.

Add condition 'Value is Not empty'

Screenshot 2023-08-04 at 6.37.41 PM.png

 

I hope you will be able to make it work, same is working for me.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

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

lucky24_0-1691158969005.png

Thanks for help.

 

@lucky24 

that's what I mentioned above.

you should be able to have that in condition directly.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sorry I was not know how to use variable in wait for condition.