Skip to content

How to Schedule a Flow to Run Every Hour

    Being a Salesforce consultant or architect while working on projects, you often come across the requirements to use scheduled jobs, and it’s grief when we have to run it more than once a day.

    When I was working on a project a few weeks ago, I came across the requirement to run a flow every 15 minutes; though Salesforce has provided a great option – Schedule flow, it has its limitations. Key things to remember about Scheduled Flow:

    1. It doesn’t have an ability to schedule flows for every hour or multiple times in a day.
    2. The Automated Process user runs scheduled flows.
    3. To change the schedule time, you have to create a new version and then activate it.
    4. and much more!

    Here are the advantages of Schedul-O-Matic 9000:

    •  You can schedule your job to run once, every 5 minutes, once a day, or once a year.
    • To change the details of a job you’ve scheduled, you can edit the associated Schedul-o-matic Entry record, no need to recreate it. 
    • You can schedule global classes, flows, and blocks of anonymous code (Anonymous code runs in user mode. You can only perform what you have permission for).
    • You can edit or change the owner of scheduled jobs.
    • It is mobile compatible and Supports around 16 languages.

    Setup the Base Configuration

    1. Make sure that you have installed Schedul-o-matic 9000. Use this link to install.
    1. Select where you want to install it, production or Sandbox and If you don’t find your Account click on More Info.
    1. Before you start scheduling any job or flow, make sure you assign the right permission set to the user who is scheduling.

    You are ready to Schedule a Flow or class.

    Here I have created a flow that should run every 15 mins to send an email notification to the Account owner with a list of accounts when the accounts are ready for the review!!!

    Let’s Start Schedule A Flow

    1. Go to app launcher | Select Schedul-o-matic 9000.
    2. Click on A flow.
      1. What flow would you like to schedule? : Schedule Triggered Flow : Notify Account Owner (select a flow name you want to schedule, only Active flows are visible in the list).
      2. When would you like the job to start? : Set Date & Time.
      3. How often (in minutes) would you like to repeat this job? (enter 0 to run once) : 15
      4. Until when? (leave blank to run in perpetuity) : leave the Date & Time blank if wanted to run on and on.
      5. Click Schedule | Confirm.
    1. To edit Date & Time or Change Owner you can modify Schedul-o-matic Entries.

    You are Done!!!

    I would love to hear your experience about Schedul-o-matic 9000? How do you use it?

    Leave a Reply