Last Updated on August 7, 2023 by Rakesh Gupta
Big Idea or Enduring Question:
- How do you run schedule-triggered or autolaunched flow at flexible repeat intervals?
Objectives:
After reading this blog, you’ll be able to:
- Run a Schedule-Triggered Flow in regular intervals (for example, every 15 minutes, Hourly, Every four hours, etc.)
- Run a Schedule-Triggered Flow only on weekends.
- And much more
Business Use case
Benjamin Moore, the Salesforce Administrator at Gurukul On Cloud (GoC), has successfully implemented a schedule-triggered flow for the Automate Currency Exchange Rate Updates in Salesforce utilizing the Currency Exchange API. This flow is presently set to run nightly at 12:54 AM.
However, based on business feedback and their satisfaction with the current setup, there is now a request for the frequency of the schedule-triggered flow to be adjusted to run every six hours.
Automation Champion Approach (I-do):
An Event on the data does not trigger scheduled Flows; they run when a scheduled time arrives. Scheduled Flows run as follows:
- Once (On a particular date and time)
- Daily (On a particular date and time)
- Weekly (On a particular date and time)
Yet, there may be instances where it’s necessary to run an autolaunchable flow more frequently than what’s needed. For such scenarios, either a familiarity with Apex or the use of an AppExchange app, Schedul-o-matic 9000, is required.
The Schedul-o-matic 9000 app offers the flexibility of custom repeat intervals. Whether it’s running a job once, every 5 minutes indefinitely, or any time frame in between, the choice lies in your hands.
👉 Check out the video for step-by-step instructions.
Formative Assessment:
I want to hear from you!
What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? Feel free to share in the comments below.