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.

Use 'Wait for duration' to wait till 2 weeks prior to a dynamic date

sd2097
Tera Guru

Hi all,

 

I have got a requirement where I get a survey response in the form of a date field (which is a string value), and I need to use a wait for condition to wait till two weeks prior to this date.

The issue is that, the wait for duration doesn't work for days, and it only takes time into consideration. Is there something we can do here, or we need to have the survey in date/time type, and use a script to compare the timings (converting 2 weeks into hours)?

 

Thanks

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@sd2097 

you are trying to use flow, then you want to wait 2 weeks prior to that data.

what's the trigger for that flow?

check this

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

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@sd2097 

Hope you are doing good.

Did my reply answer your question?

💡 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