Sub topic 10
Setting the start date, time, and frequency
This chapter assumes you know what a schedule-triggered flow is from the previous chapter. You should also be able to open Flow Builder and read basic flow metadata. Here you will configure when a schedule-triggered flow runs, see how the schedule is stored, and learn the mistakes that make a flow run at the wrong time or not at all.
The three schedule settings
A schedule-triggered flow has a Start element with a Set Schedule panel. The panel has three settings:
| Setting | What it controls | Options |
|---|---|---|
| Start Date | The first day the flow can run | A calendar date |
| Start Time | The time of day the flow starts | A clock time |
| Frequency | How often the flow repeats | Once, Daily, Weekly |
Frequency has only three choices. There is no hourly option and no monthly option. If you need a different rhythm, see "Working around the three frequencies" below.
- Once: the flow runs one time, on the start date at the start time.
- Daily: the flow runs every day at the start time, beginning on the start date.
- Weekly: the flow runs on the same day of the week as the start date, at the start time. A start date that falls on a Tuesday gives a Tuesday run every week.
Pick the start date with the weekday in mind. Weekly has no separate "day of week" field, so the start date sets the weekday.
How the schedule is stored
The schedule is saved in the flow's metadata, inside the start element. Here is a flow that processes Opportunities in the Prospecting stage every day at 02:00 UTC:
<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>Three details matter here:
triggerTypeisScheduled. This value is what makes the flow a schedule-triggered flow.frequencytakesOnce,Daily, orWeekly.startTimeends inZ, which means UTC. You see local time in Flow Builder, but the file holds a UTC value. When you compare a deployed flow with what you configured, convert between the two.
The object and filters elements choose which records the flow processes. The next chapters cover them in detail. The schedule only decides when the selection runs.
From activation to run
Saving a schedule does nothing until you activate the flow. Activation registers the schedule with the platform. After that, each scheduled time starts a batch of flow interviews, one per selected record.
A few consequences follow from this path:
- The schedule belongs to the active version. Editing the schedule on a new version has no effect until you activate that version.
- Deactivating the flow stops future runs. Reactivating registers the schedule again.
- Records are selected when the run starts, not when you activate. A record that matches the filters at 02:00 is processed even if it did not match when you saved the flow.
Choosing a start date
Salesforce expects the start date and time to be in the future when you activate. If you pick a moment that has already passed, activation can fail or the first run slips to the next occurrence. Choose a date that is at least a day ahead, and you avoid the problem.
For a Daily flow, the start date is the first day the flow runs. Setting it two weeks ahead is a valid way to prepare a flow now and let it begin later. For a Weekly flow, the start date also sets the weekday, so check a calendar before you choose.
Time zones
The Start Time you see in Flow Builder is shown in a time zone, and the metadata stores UTC. Two habits keep you safe:
- After you set a time, open the saved metadata or a retrieved copy of the flow and confirm the
startTimevalue matches the hour you intended. - Test around daylight saving changes. A UTC value does not move when clocks change, so a flow that ran at 02:00 local time may run an hour earlier or later in local terms after the change. Check how this behaves in your org before you rely on a specific local hour.
If several admins work in one org, agree on one convention, for example "all start times are set in UTC". Then nobody has to guess which time zone a colleague used.
Working around the three frequencies
Only Once, Daily, and Weekly exist, so other rhythms need a workaround:
- Monthly: schedule the flow Daily, then add a Decision element at the start that checks whether today is the day you want. A formula such as
DAY(TODAY()) = 1returns true on the first of the month. On other days the flow ends without doing any work. - Every few hours: a schedule-triggered flow cannot do this. Consider scheduled Apex, or a record-triggered flow with a scheduled path, if the work depends on a record's date.
- Different times for different groups: create one flow per time, or one flow per group, each with its own schedule.
The Decision workaround has a cost. The flow still starts every day and selects its records, so put the date check in the Start element's filter if you can, and keep the work before the check minimal.
Common errors
- The flow never runs. The most frequent cause is an inactive flow. Open the flow list and confirm the version with the schedule is active.
- The flow runs at the wrong hour. Compare the local time in Flow Builder with the UTC value in the metadata.
- A Weekly flow runs on the wrong day. The weekday comes from the start date. Change the start date, not the frequency.
- The schedule change has no effect. You saved a new version but left the old one active. Activate the new version.
- A Once flow ran and cannot run again. Once means once. To run it again, set a new future start date and activate the flow again, or use Daily and deactivate the flow after you are done.
- The run happens but no records change. The schedule worked, and the problem is the object or filters. Review the record selection, not the timing.
Checking your schedule
After activation, confirm the flow is registered. Look in Setup under Scheduled Jobs, where scheduled flows appear alongside other scheduled work. If you do not find the job, return to the flow and check that the active version holds the schedule you expect. A later chapter covers monitoring and failed runs in full.
Exercise
You want a flow to run every Monday at 06:00 UTC. Which frequency do you choose, and how do you make sure it runs on Monday? A teammate then edits the schedule on a new version and saves it, but the old time keeps firing. What happened?
Show answer
Choose Weekly, and set the start date to a Monday in the future with a start time of 06:00 (stored as 06:00:00.000Z in the metadata). Weekly takes its weekday from the start date. The old time keeps firing because the schedule belongs to the active version, and the teammate saved a new version without activating it. Activating the new version registers the new schedule.
Exercise
Your business needs a flow to run on the first day of every month. Frequency has no Monthly option. How do you build it?
Show answer
Set the frequency to Daily and add a check that ends the flow unless today is the first of the month, for example a Decision using the formula DAY(TODAY()) = 1. On every other day the flow finishes without changing any records.