Start a Flow on a Schedule

Do you have flows that are launched from Process Builder every time a record is saved, even though you need them to run only once a week? Do you wish you could schedule flows to run with the same ease as setting up a meeting? Now you can schedule an autolaunched flow to start on a particular date and time and set the frequency to once, daily, or weekly. If you want that scheduled flow to run only for a set of records, you can specify an object and filter.

Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.

How: To start a flow for a set of records, select the filter conditions in the Start element. When your flow starts, a flow interview runs for each record that matches your filter—no looping required. The matching record is stored in the $Record global variable, so you can reference the variable or its fields throughout your flow.

The Edit Start window that shows The Scheduled Time Occurs option is selected

Important

Important

There's a per-org 24-hour limit for the number of scheduled flow executions at the scheduled start time. The org limit is whichever is greater: 250,000 records or the combined total of 200 records per user license. When a flow is scheduled to start, make sure that its schedule and conditions don’t cause your org to go over the limit.

To check whether a scheduled flow exceeds the org limit, check the debug logs to see the number of records that the flow runs on. The number of records equals the number of scheduled flow executions, because a flow runs for each record. Track the number of records with the new FLOW_START_SCHEDULED_RECORDS debug log line. If the flow exceeds the org limit, Salesforce sends an error email to either the admin who last modified the associated flow or the Apex exception email recipients.

On the Flow Builder canvas, a flow shows its scheduled start time.

The Start element that’s on the Flow Builder canvas shows the start date, start time, and frequency

To monitor flows that are scheduled to start, from Setup, enter Scheduled in the Quick Find box, then select Scheduled Jobs.