logo

NJP

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

Import · May 01, 2024 · article

Recently I was working on a requirement to make the flow wait until a specific date/time is reached and then trigger the next action. I initially thought it would be an easy configuration but couldn't find how because out of the box there are two conditions -

* Wait for a condition
* Wait for a duration

But they didn't have any straightforward option and I was trying to not get into scripts to do this.

Here is what worked for me -

Used the wait-for-duration activity, changed the duration type to relative duration, and then used 1 second after the variable value to make the flow until the specified time and then triggered the next action.

View original source

https://www.servicenow.com/community/now-platform-articles/flow-designer-making-the-flow-until-a-specific-date-time-based/ta-p/2915607