Sub topic 10
Setting the start date, time, and frequency
This chapter assumes you can open Flow Builder, know the basic Salesforce data model, and have read the earlier chapter on how schedule-triggered flows start. Here you configure the timer: when the first run happens and how often it repeats.
What the schedule controls
A schedule-triggered flow has three settings on its Start element:
- Start date: the first day the flow can run.
- Start time: the time of day the flow runs.
- Frequency: how often it repeats. The options are Once, Daily, and Weekly.
The start time uses the time zone of the user who saves the flow. Check your own time zone setting before you pick a time, or runs will happen at an unexpected hour.
Configure the schedule
- In Flow Builder, create a Schedule-Triggered Flow.
- On the Start element, choose Set Schedule.
- Enter the start date, the start time, and the frequency.
- Choose an object and add filter conditions, covered in the next chapter.
- Save and activate the flow.
The saved metadata shows the same settings. This flow runs daily at 02:00 UTC and selects Opportunities in the Prospecting stage:
<start>
<filterLogic>and</filterLogic>
<filters>
<field>StageName</field>
<operator>EqualTo</operator>
<value>
<stringValue>Prospecting</stringValue>
</value>
</filters>
<object>Opportunity</object>
<schedule>
<frequency>Daily</frequency>
<startDate>2025-01-01</startDate>
<startTime>02:00:00.000Z</startTime>
</schedule>
<triggerType>Scheduled</triggerType>
</start>How a run is timed
Salesforce does not promise to start a flow at the exact second you set. It queues the job, and the run begins when resources are available. Busy periods can delay it. Do not build logic that depends on an exact start second.
Common errors
- The flow never runs. The flow is saved but not activated, or the start date is in the past for a Once schedule. A Once schedule with a past date does not run.
- The flow runs at the wrong hour. The start time follows the time zone of the user who saved the flow, not the time zone of the records or of your users.
- New versions change the timing. Activating a new version applies the schedule saved in that version. Confirm the schedule on the new version before you activate it.
- A run seems to be skipped. No records matched the filters at run time, so the flow had nothing to process. This is expected behavior, not a failure.
Check your understanding
Exercise
A schedule-triggered flow is set to run Once, with a start date of last Tuesday. It is active. Will it run, and what would you change?
Show answer
It will not run, because the start date has already passed and Once means a single run. Change the start date to a future date and time, then save and activate the flow again, or switch the frequency to Daily or Weekly if you want repeated runs.
Exercise
Your flow is meant to run at 02:00 in the evening your users' time, but runs happen at a different hour. Which setting do you check first?
Show answer
Check the time zone of the user who saved the flow. The start time is interpreted in that user's time zone, so a mismatch shifts the run time.