This Okta Workflows template provides a reusable scheduler for running multiple jobs with different schedule conditions.
Normally, you need to create a separate Scheduled Flow when jobs have different trigger times, weekdays, or dates. In some cases, an entire flow may contain only a Scheduled Flow trigger and a card that passes data to another flow.
This template centralizes the schedule configuration in an Okta Table and uses a shared Scheduled Flow to evaluate and run enabled jobs.
Supported schedules
- Hourly
- Daily at a specified hour
- Weekly on a specified weekday and hour
- Monthly on a specified day and hour
How it works
The template includes the following components:
-
Scheduled Jobs Registry
- An Okta Table containing the schedule and configuration for each job
-
Scheduler Load Enabled Jobs
- Runs once every hour
- Loads enabled jobs from the Okta Table
- Passes each job to the helper flow
-
Schedule Match Runner
- Compares the current time with the job’s schedule settings
- Continues only when the schedule conditions match
- Runs an action based on the
job_name
The included example sends a Slack message. You can replace or extend the second If/Else If block to run different actions for each job_name.
The Slack channel, bot name, and bot emoji can also be configured for each job in the table.
Installation and setup
- Download
generalScheduledFlow.folder. - In Okta Workflows, import the folder file.
- After the import, open the imported folder.
The import creates the following as separate components inside the folder:
- One Okta Table
- One Scheduled Flow
- One Helper Flow
After importing:
- Define your own jobs and schedule settings in the Scheduled Jobs Registry table.
- Verify that the Scheduled Flow references the imported table and Helper Flow.
- Configure the time zone in the Date & Time cards.
- Configure the required app connections, including Slack if you want to use the included example.
- Update the second If/Else If block to run the actions you want for each
job_name. - Test the flows before enabling the Scheduled Flow.
Download
- generalScheduledFlow.folder (144.2 KB)