Flow Designer wait until a specific time in the day

Cheski Frank
Tera Contributor

Hi all,

I am building a flow and would like to let the flow wait until it's 10PM in the evening before I take some action.

In this case, I would like to make changes to email addresses, but only in the evening, when impact is lowest.

The built-in "Wait for a duration of time", however, does not allow me to specify a specific time of the day.

Any help would be greatly appreciated.

Kind regards,

Cheski

1 ACCEPTED SOLUTION

Sumanth16
Kilo Patron

Hi @Cheski Frank ,

 

Please refer to below thread:

https://www.servicenow.com/community/now-platform-forum/flow-designer-wait-for-a-duration-of-time-lo...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

View solution in original post

7 REPLIES 7

SanjivMeher
Kilo Patron
Kilo Patron

Are you running the Flow on a record?

If not, you can trigger the flow itself at 10PM.


Please mark this response as correct or helpful if it assisted you with your question.

Cheski Frank
Tera Contributor

Indeed, this is triggered by a request, not a time trigger. It's in the middle of my flow.

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Cheski Frank ,

 

Script based waiting is not there in Flow Designer. But till when do you wish to wait? possibly you can try to use Do Until Flow logic with some stop condition. 

OR you can try this logic 

 

  1. Start Event: Begin your flow with a start event.

  2. Get Current Time: Use the "Get Current Time" action to fetch the current time.

  3. Condition: Add a condition to check if the current time is before 10 PM. If it is before 10 PM, proceed to the next step.

  4. Wait for a Duration of Time: Use the "Wait for a duration of time" action to wait until it's 10 PM.

  5. Take Action: After waiting, you can proceed with the action you want to take, such as making changes to email addresses.

Here's a simple example of how you can set up the flow:

Start Event
|
Get Current Time
|
Condition: Current Time < 22:00 (10 PM)
|    \
|     Wait for a Duration of Time: 10 PM - Current Time
|     | 
|     Take Action: Make changes to email addresses
|
End

 

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Cheski Frank
Tera Contributor

Thanks, Sohithanjan G!

Will try it out tomorrow and let you know 🤗