# How do Schedule-Triggered Flows automate periodic batch processing tasks for administrators?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Schedule-Triggered Flows, Batch Automation

Read it on the site: https://www.forcechallenges.com/interview-questions/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:**
1. Setup > Flows > New Flow > Schedule-Triggered Flow.
2. In the Start element choose Set Schedule: start date, time, and Once, Daily or Weekly.
3. 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.
4. Add logic (Decision, Assignment, Update Records, Send Email, Create Records, Subflow, Custom Notification, Apex action).
5. Save, activate. Each qualifying record becomes one flow interview, and interviews run in batches handled by the platform.
6. 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:**
```text
Start: Schedule-Triggered Flow
  Object: Case
  Run: Daily at 02:00
  Condition: Status = "Waiting on Customer" AND LastModifiedDate < {!$Flow.CurrentDate} - 7 days
  (build the date comparison with a formula resource, for example {!$Flow.CurrentDate} - 7)
Action: Update Records -> $Record.Status = "Closed"
Action: Send Email to $Record.Contact.Email
```

**Hidden gotchas & must-remember points:**
- Org-wide cap: scheduled flow interviews are limited per 24 hours (documented as the greater of 250,000 or licenses x 200; verify in current limits).
- Frequency options are only Once, Daily and Weekly. For monthly, use a daily flow with a date check or a Decision.
- The flow must be Active; saving a new version does not move the schedule until activated.
- Screen elements are not allowed because there is no user.
- Flow interviews are still subject to per-transaction limits (100 SOQL, 150 DML, 10 s... CPU per batch), so loops with Get Records inside them hurt.
- Changing the schedule re-queues the job; check Setup > Scheduled Jobs if a run seems missing.

**Best practice:** Filter tightly in the Start element so only needed records are processed, and add fault paths that notify an admin.

---
Source: ForceChallenges · last updated 2026-11-02
