top of page

How to resume a flow after X minutes?

Sep 8, 2020
1 min read

Howdy! All good I hope. 🙂

If you’ve ever found yourself working with Pause element in flows, you might’ve noticed that the “Offset Unit” only supports hours or days and doesn’t support minutes.

This article is about making a flow resume after X minutes.

What’s the trick?

The idea is to create a formula variable of datetime type (say, dateTimeAfterXMinutes) where we add X minutes to any base time and use that variable as base time in Resume configuration and set the Offset Unit to 0. The base time in the formula can be current datetime or any record’s field value or something else depending upon the use case.

How would it look?

Step 1: Create a formula variable of datetime type,(Time) with the following formula.

{!$Flow.CurrentDateTime} + <X minutes>/1440

Replace ‘<X minutes>’ with the number of minutes you’d like to have the flow resume.

Step 2: Set up your Pause element as follows.

And voila! Your flow is now set to resume after ‘X’ minutes. Wasn’t that easy! 😀

NOTE: The flow may not resume strictly after ‘X’ minutes because it just gets queued up after ‘X’ minutes and then executes depending on the queue size, so there might be a slight difference between the timings.

That brings us to end the of this article. Hope you found this one useful! Catch you in the next one! ✌ Thank you for being an awesome reader! Subscribe to this blog if you don’t want to miss the latest updates and posts. 🙂

 
 
 

Comments


bottom of page