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:
- It doesn’t have an ability to schedule flows for every hour or multiple times in a day.
- The Automated Process user runs scheduled flows.
- To change the schedule time, you have to create a new version and then activate it.
- 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
- Make sure that you have installed Schedul-o-matic 9000. Use this link to install.
- Select where you want to install it, production or Sandbox and If you don’t find your Account click on More Info.
- 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
- Go to app launcher | Select Schedul-o-matic 9000.
- Click on A flow.
- 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).
- When would you like the job to start? : Set Date & Time.
- How often (in minutes) would you like to repeat this job? (enter 0 to run once) : 15
- Until when? (leave blank to run in perpetuity) : leave the Date & Time blank if wanted to run on and on.
- Click Schedule | Confirm.
- 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?