How do Schedule-Triggered Flows automate periodic batch processing tasks for administrators?
Answer
Basics: Many tasks must happen on a clock rather than when a user edits a record: close stale cases, email owners of expiring contracts, or archive old data. Previously admins used scheduled Apex or Workflow time triggers. Schedule-triggered flows are the declarative replacement and the preferred tool now that Workflow Rules and Process Builder are retired in favor of Flow.
How it works:
- Setup > Flows > New Flow > Schedule-Triggered Flow.
- In the Start element choose Set Schedule: start date, time, and Once, Daily or Weekly.
- Optionally choose an Object and set filter conditions (for example Status = Open AND LastModifiedDate before 30 days ago). Without an object, the flow runs a single interview per run.
- Add logic (Decision, Assignment, Update Records, Send Email, Create Records, Subflow, Custom Notification, Apex action).
- Save, activate. Each qualifying record becomes one flow interview, and interviews run in batches handled by the platform.
- Monitor in Setup > Paused and Failed Flow Interviews and Scheduled Jobs. Failures can generate email to the flow's creator or admin.
Advanced / deep dive: Records are queried at run time, the flow's Update Records can be bulk-optimized with the "use the record that triggered the flow" pattern (update $Record directly with no extra DML element). There is a Scheduled Path alternative inside record-triggered flows (run X days after the record condition is met) which is better when the delay is relative to the record rather than a fixed clock. For very large volumes, complex aggregation or callouts with strict control, batch Apex is still stronger. Scheduled flows run in system context (as the Automated Process user by default), so sharing and field-level security are not enforced as the end user; design access accordingly.
Code / config example: