Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can I set the RITM status to Work in Progress at the date and time specified in the SR?

Ryota
Tera Guru

Is there a way to insert the work date/time specified in a Service Request into the RITM’s expected time field, and then have the Flow continue after that time has passed?

I've been trying various approaches using Wait for condition  in Flow Designer, but I haven't been able to get it to work.

3 REPLIES 3

Mark_Branscombe
Tera Contributor

There is a Flow Logic called "Wait for a duration of time".

 

You could work out the amount of time to wait from the date / time value(s) you have collected, set that as a Flow variable and use the Flow logic above.

Ankur Bawiskar
Tera Patron
Tera Patron

@Ryota 

so you want the flow to wait till that Date/time reaches which is a catalog variable?

if yes then this is feasible in flow designer

-> use "Get Catalog Variables" flow action to grab that variable

-> then use "Wait for Duration" flow logic and give Relative Duration such that it waits 1 second after that date/time

-> As soon as that time crosses the flow will continue

-> then use "Update Record" flow action and update the RITM State

Flow Designer : Making the flow wait until a specific date time based on a catalog variable 

AnkurBawiskar_0-1765275302021.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Timmdavid8192
Kilo Explorer

Using a combination of 'Wait for condition' and checking against the SR work date/time could work, but make sure the condition is correctly evaluating the datetime format used in the request.