<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Pause a Flow for 30 Days in Workflows
Workflows
Okta Classic Engine
Okta Identity Engine

Overview

This KB will teach you to pause a flow for 30 days in Okta Workflows.

Solution

You must pause a flow for 30 days (or another number of days).


You will save the date you need to run the flow the next time in a table. Another flow can check if it’s time to run. If yes, it can call the flow you paused.


The table keeps the date when to run the flow next time:


Table with next run date.


The flow to check whether to run a flow or not:
 


Flow to check when to run a flow next.

Flow steps


The flow has the following steps.


Retrieve the next run date


Using the row ID, the Table – Read Row card retrieves a row from a table that holds the date to run a flow next time.
 

Get today’s date


The Date & Time – Now card returns today’s date.
 

Before or after the run date?


In this step, you find if today is still before or after the next run date. The Date & Time – Difference card finds the difference in days between today’s date and the future run date.


Check if to run the flow


The Branching—Continue If card checks if the difference in days from the previous card is smaller or larger than zero.

  • If smaller than zero, today’s date is before the future run date. Don’t run the flow yet. The card also returns Don’t run the flow message.
  • If larger than zero, today’s date is after the future run date. Run the flow.

Compose card


Since this is an example, the Compose card prints Yes, run the flow 🚀. In real automation, the flow calls the flow that was paused. You could also continue the flow logic in this flow.
 

Result


You can configure this flow to run daily.
 


Run flow on schedule.


Running the flow with today’s date before the future run date:
 


It's too soon to run the flow.


Running the flow with today’s date after the future run date:
 

 
Running the flow.

Related References

Loading
Pause a Flow for 30 Days in Workflows