Trigger flow designer actions based on the variable

sailesh1
Tera Contributor

Hello Experts,

I've created a flow designer for the automatic update of a field on the location table. This is being triggered from the RITM.

However I have to put a wait condition on the basis of variable on the catalog item like,

"Desired Date" : DD/MM/YYYY -- this is the field on the catalog item & the users can choose this date while requesting. Based on the date opted, the record should update on the same day which means I've to wait till the date falls and trigger the automation. I'm unable to achieve this in London (used stages also)

Could you please help me out?

Regards

Sailesh

5 REPLIES 5

Brandon Barret1
Mega Sage

This is a good question. I have not run into the issue, but maybe these links will help? 

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/flow-designer/task/cre...

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/flow-designer/task/cre...

Is there any way to run your script after the wait condition and use an update record action in your flow at that point?

https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/flow-designer/referenc...

Wish I could be of more help. Keep us posted. 

Thank you Brandon I've already created the flow much before and it's working without any wait condition. My requirement now is : Flow should be triggered on the basis of variable on the catalog item (Date, here)

User X has opted date dd/mm/yyyy

Now, the flow should wait until the 'date' falls and it should trigger the record update or whatsoever action we build 

siva_
Giga Guru

Hello  , 

 

I dont think we can have the flow gets triggered based on a specific date logged in a variable on a catalog item , For this i can think of one way if you would like to go with it , 

have a scheduled job glide through the requested items and then create a flow to just update the field on the location table and trigger this scheduled job daily to check if any of the records in RITM table are matching the conditions where your target field date is today and then trigger the flow you created to update the location table through script from the scheduled job. 

 

That should help suffice your requirement. 

 

Hope this helps. 

Mark this response as correct and e

Danny Rhoades
Kilo Guru
sailesh,

Did you ever get this figured out?  I'm looking to do a something similar where I warn a user 2 hours prior to their chosen end date and time.  So I created a wait for condition flow action to trigger 2 hours prior to the catalog variable time but it doesn't seem to trigger correctly.  Looking for a fix but have yet to find one...