3: Automation

    Given a scenario, identify the appropriate automation solution based on the capabilities of the tool.

    The first half of the automation content area is a tool-selection exercise. Every scenario question gives you a business outcome and one of two answer patterns: pick the right tool to deliver the outcome, or pick the right configuration within the right tool. The trap is that the platform offers nine declarative automation surfaces (validation rule, formula field, roll-up summary, duplicate rule, record-triggered flow, screen flow, scheduled flow, autolaunched flow, approval process), plus the case management automations (assignment, auto-response, escalation), plus Flow Orchestrator for multi-stage workstreams. Every one of those has a region of the problem space where it is the cleanest fit and a region where it is a mistake. A scenario question almost always isolates one of those boundaries.

    The decision begins with whether the outcome enforces a rule, computes a value, drives a process, or coordinates humans. Enforcement is a validation rule: block the save when a condition is true. Computation is a formula field or a roll-up summary: hold a derived value without an automation run. Process is Flow: react to a data change and write new data. Coordination is an approval process: collect explicit approvals from designated users with a clear submitted-approved-rejected lifecycle. Mixing these layers is the most common scenario mistake. An administrator who builds a record-triggered flow to throw an error when a field is wrong has rebuilt a validation rule and inherited Flow's transaction cost. An administrator who builds a validation rule to compute the days a case has been open has reached for the wrong layer; a formula field is the answer.

    The second axis of the decision is timing. A before-save record-triggered flow runs inside the save transaction before the record is written to the database; it can assign field values on the triggering record with no DML cost and no second save. An after-save record-triggered flow runs immediately after the record commits and can read related records, write to other objects, send emails, invoke Apex, or fire platform events. A scheduled flow runs at a defined cadence over a record set defined by an SOQL-style filter. An autolaunched flow runs synchronously when called by another flow, a process, an Apex method, an action, or a button. A screen flow runs interactively when launched by a user from a button, a quick action, a Lightning page, an experience site, or a utility bar. Choosing the wrong timing turns a fast, in-line update into a queued asynchronous operation or, worse, a recursive cascade.

    The third axis is the relationship between the triggering record and the work being done. If the work updates the same record, before-save is the right pattern. If the work updates child records of the triggering record, after-save is right. If the work updates a sibling record that shares a parent, after-save is right but you must traverse the parent. If the work updates a wholly unrelated object, after-save with an explicit Get Records is required. If the work needs to wait for time to pass (a follow-up reminder seven days from creation), a scheduled path inside a record-triggered flow handles the asynchronous wait. If the work spans multiple human stages, Flow Orchestrator fits because it can sequence stages, assign work to different users, and survive across days.

    The retired tools and why they keep appearing in distractors

    Two automation tools that the platform supported for years are retired and must be treated as wrong answers in any scenario question on the exam. Workflow Rules, the original declarative automation, is end-of-life: existing rules continue to run in legacy orgs, but new rules cannot be created and migration to Flow is the supported path. Process Builder, the visual successor to Workflow Rules, is likewise retired for new builds; the Migrate to Flow tool converts existing processes into record-triggered flows. The scenario implication is sharp. A question that lists Workflow Rule, Process Builder, Flow, and Approval Process as the four options is almost always testing whether you know that Workflow Rule and Process Builder are no longer the answer. Pick Flow. The same applies when the stem reads, "the administrator needs to update a related record when a case is closed"; the only declarative tool that builds this in supported form is a record-triggered flow.

    💡 Exam Trap: A scenario lists Workflow Rule or Process Builder as one of four answer options. Both tools are retired for new builds. The correct declarative answer is always Flow Builder. The distractor exists to catch candidates who studied older content.

    ⚠️ Anti-Pattern: Building a record-triggered flow whose only purpose is to add an error to a field when a condition is true. That work belongs in a validation rule. Validation rules run earlier in the save order, are cheaper, are visible in Object Manager, and are explicit to other administrators reading the org.

    Validation rules: enforcement at the save boundary

    A validation rule is a formula that evaluates to true or false on save. When it evaluates to true, the save fails and the configured error message is shown either at the top of the page or against a specific field. Validation rules fire as part of System Validation early in the order of execution, before any record-triggered flow runs. They are the right choice when the requirement is enforcement: a required combination of fields, a constraint on values, a rule that depends on related-record state, or a guard on the transition between record types. They are stateless; they do not store anything, do not write anything, and either pass or fail the save.

    The capability question on the exam is whether a validation rule can express the rule. Validation rules can reference fields on the record, fields on its parent through dot notation (for example, Account.Industry from an Opportunity), the running user via $User, the user's profile via $Profile, the org's defaults via $Organization, and record type via $RecordType. They cannot loop over child records, cannot read sibling records that are not parents, and cannot make queries. A requirement like "an Opportunity cannot be marked Closed Won if any Opportunity Product has a quantity of zero" cannot be expressed as a single validation rule on Opportunity because it requires iterating over children; that pattern needs a record-triggered flow (or a roll-up summary that exposes the condition as a single field which a validation rule then checks).

    💡 Exam Trap: Validation rules can read fields from a parent record through dot notation but cannot iterate over child records. When a scenario requires "blocking the save based on whether any related child record meets a condition," the declarative path is a roll-up summary on the parent (if the relationship is master-detail) that the validation rule checks, or a before-save record-triggered flow that throws a Custom Error.

    Formula fields and roll-up summaries: computation instead of automation

    Formula fields and roll-up summaries are not automations. They are derived values: the platform computes them on read for formula fields and on commit for roll-up summaries. The scenario relevance is that they often replace an automation entirely. If a manager needs to see "days since last activity" on a case, a formula field is the answer; a record-triggered flow that stamps a number would be wrong because the number would go stale the moment the clock advanced. If an account team needs to see "total revenue of open opportunities," a roll-up summary on the Account (assuming a master-detail relationship to Opportunity, which does not exist in the standard schema; this is a teaching example) computes the total without any flow run.

    The trap is that roll-up summaries require a master-detail relationship and do not work on a lookup. The standard Account-Opportunity relationship is a lookup, so a roll-up of Opportunity Amount onto Account through native roll-up summary is not available. The supported declarative approach for this scenario is a record-triggered flow on Opportunity that updates a custom number field on the related Account, with care to handle insert, update, and delete and to avoid a recursion path.

    📊 Limit: A standard object can hold up to 25 roll-up summary fields, and a custom object can hold up to 40 (with applicable feature licensing). Both require a master-detail relationship between the child and the parent; lookups do not support native roll-up summaries.

    Approval processes: structured human review

    Approval processes occupy a distinct slot in the automation toolset. They handle scenarios where a record must be reviewed and approved by one or more designated users (managers, queue members, named approvers) before it can advance. The pattern is submit, evaluate, route, decide, then act. The submitter clicks Submit for Approval; the approval process locks the record (optionally), routes it to the first approver, and waits. The approver clicks Approve or Reject; the process moves to the next step or finishes. Final approval and final rejection trigger their own actions (field updates, emails, outbound messages, flows). Configuring an approval process means setting its components: the entry criteria (which records may be submitted), the initial-submission actions (commonly a record lock), one or more approval steps (each with its own step criteria and an assigned approver: a specific user, the submitter's manager via the Manager field, a queue, or a related user field, with optional delegate and "approve/reject the first response vs. unanimous" behavior), and the final-approval, final-rejection, and recall actions. The Approval History related list and email-approval (including the Salesforce mobile/Approvals notifications) round out the configuration.

    Approval processes are the right answer when the scenario describes a hand-off to a named decision-maker, requires the record to wait for an out-of-band human action, or needs a clear audit trail of who approved or rejected and when. A discount approval on an Opportunity above a threshold, a contract approval that must clear Legal and Finance in sequence, an expense claim that walks the management chain: all approval processes. A scenario that mentions Submit for Approval, Recall, the Approval History related list, or an approver receiving an email with Approve and Reject links is signaling an approval process.

    The trap on the exam is using an approval process for a non-approval workflow. A scenario like "when a case is created, route it to the right queue" is not an approval process; the case is not being approved by anyone. That pattern is a case assignment rule plus, where needed, a record-triggered flow. Approval processes are also single-record submission events; they do not batch and they do not trigger on field changes (the submission is an explicit user action or a flow-driven Submit for Approval call).

    Case management automations: assignment, auto-response, escalation, queues

    For the Case object, several specialized declarative automations exist alongside Flow and validation rules. A case assignment rule routes new cases to a user or a queue based on rule entries evaluated in order; the first matching entry wins. A case auto-response rule sends an outbound email to the case contact based on rule entries evaluated in the same way; the first matching entry sends its template. A case escalation rule monitors open cases against a defined business hours clock and, when a case has been open beyond the threshold without meeting the exit criteria, performs an escalation action (reassign to a user, reassign to a queue, send notification email).

    The scenario boundary is sharp. Assignment rules answer "where does this case land at creation?" Auto-response rules answer "what email does the contact get immediately?" Escalation rules answer "what happens to a case that sits too long?" A record-triggered flow on Case can perform any of these actions too, but the declarative-purpose tools are explicit, visible, and require no Flow design work; on a scenario question that asks for the "best" or "most appropriate" tool, the purpose-built rule wins for that specific concern. Where the requirement layers multiple actions (route to a queue and update a custom field and send a custom notification and create a related task), Flow is the supported integrator.

    Duplicate rules and matching rules: a separate layer

    Duplicate rules and matching rules are the platform's declarative duplicate-management layer. A matching rule defines the criteria that constitute a duplicate (which fields, with what fuzziness). A duplicate rule defines what happens when a record being saved matches an existing record: block the save, allow with an alert, or allow silently while reporting. The scenario distinction is that matching rule equals "what counts as a duplicate," duplicate rule equals "what do we do about it." Both are independent of Flow; a flow does not natively run duplicate rules, although a flow that creates a record will trigger any active duplicate rule on that object as part of the save.

    Decision matrix: the canonical automation selector

    The full tool-selection picture, expressed as a decision matrix:

    RequirementFirst-choice toolReasonWrong choices
    Block save when a condition is trueValidation ruleRuns in System Validation, no DML cost, visible to adminsFlow throwing an error works but is heavier
    Compute a value derived from other fields on the same recordFormula fieldComputed on read, no automation costFlow writing a field re-fires save logic
    Aggregate values from child records (master-detail)Roll-up summaryNative, no flow neededFlow looping over children is unnecessary
    Aggregate values from child records (lookup)Record-triggered flowRoll-up summary unavailable on lookupRoll-up summary is not an option on lookup
    Set a field on the same record at saveBefore-save record-triggered flowNo second DML, runs in same transactionAfter-save causes a second save
    Update related records when a record changesAfter-save record-triggered flowCan read and write related objectsBefore-save cannot write to other records
    Send a follow-up after a delayScheduled paths in a record-triggered flowAsynchronous resume at the configured offsetScheduled flow runs by query, not by event
    Run a job over a saved query of records on a cadenceScheduled flowCadence plus filter is its native patternA record-triggered flow does not run by clock
    Prompt a user for inputs and act on themScreen flowBuilds a guided UI from configurationRecord-triggered flow has no UI
    Encapsulate logic called from buttons, actions, or ApexAutolaunched flowDesigned to be invoked, not triggeredRecord-triggered flow only runs on record change
    Respond to a published platform eventPlatform event-triggered flowNative subscriber to event busRecord-triggered flow does not subscribe to events
    Coordinate multi-step human workstreamsFlow OrchestratorSequences stages, assigns work, waitsA single flow cannot wait days for humans
    Collect named approvals with an audit trailApproval processBuilt-in submit, route, decide, final actionsFlow can mimic but loses Approval History
    Route a new case to the right ownerCase assignment rulePurpose-built rule entriesFlow works but is heavier
    Send first email to a case contact on creationCase auto-response rulePurpose-built rule entriesFlow works but is heavier
    Notify when a case sits open too longCase escalation ruleBusiness-hours clock built inFlow needs a scheduled path per case
    Detect duplicates on saveDuplicate rule plus matching ruleNative duplicate managementFlow checking for dupes reinvents the layer

    Order of execution: the timing diagram every administrator needs

    The order of execution is the official sequence the platform follows when a record is saved. The scenarios on the exam that hinge on order ask either "which automation runs first?" or "can automation A see the values that automation B wrote?" The right answer follows the order. The simplified flow for a save operation:

    Reading the diagram from the top, three implications matter for scenarios. First, before-save flows run before validation rules, so a before-save flow that derives a field can be evaluated by a validation rule on the same save. Second, after-save flows run after the record-as-saved values exist, which is why they can write to related records (the triggering record has an Id). Third, assignment rules, auto-response rules, and escalation rules all sit after after-save flows, so a flow on Case Insert that changes the OwnerId will have its OwnerId potentially overwritten by a matching assignment rule entry unless the flow disables assignment rules (which case routing flows often do).

    💡 Exam Trap: A before-save record-triggered flow assigns a field value, and the candidate assumes this value is final. A validation rule that fires next can still block the save, undoing the flow's assignment. The save is one transaction; nothing is persisted until all validation passes.

    ⚠️ Anti-Pattern: Building two record-triggered flows on the same object at the same trigger point (both after-save on update, for example) and relying on alphabetical name to control which runs first. Flow Trigger Explorer in Setup shows the order, and trigger order on each flow's trigger configuration lets the administrator set it explicitly. Reliance on naming is fragile.

    Scenario walkthrough: choosing among five candidates

    🎯 Scenario: The sales operations manager wants the system to set the Opportunity Stage to "Closed Lost" automatically when the Close Date passes by more than 30 days without a stage change. The administrator opens the automation menu and sees Flow Builder, validation rules, approval processes, scheduled flows, and case escalation rules. Which fits, and why? The answer is a scheduled flow. Validation rules cannot write values; approval processes need a human submission; case escalation rules only apply to Case; a record-triggered flow does not fire when nothing has changed. A scheduled flow runs nightly, filters Opportunities where Close Date is more than 30 days past and Stage is not closed, and updates Stage. A record-triggered scheduled path also works (set on Opportunity create or update with a scheduled path 30 days after Close Date), and is often the cleaner pattern because each opportunity carries its own clock.

    Capability comparison: validation rule vs. before-save flow vs. after-save flow

    CapabilityValidation ruleBefore-save record-triggered flowAfter-save record-triggered flow
    Block the save with an errorYes (field or top of page)Yes (Custom Error element)No (record is already committed)
    Set a field on the triggering recordNoYes, with no second DMLYes, but requires a separate update DML
    Read parent record fieldsYes via dot notationYes via Get RecordsYes via Get Records
    Read sibling record fieldsNoYes via Get RecordsYes via Get Records
    Update related recordsNoNoYes
    Send emailNoNoYes (Send Email action)
    Call ApexNoYes (invocable action)Yes (invocable action)
    Make a calloutNoNoYes, when configured as "allow callouts"
    Run on DeleteNoNoYes, when the trigger is set to Delete
    Cost a second DMLNoNoYes (a second save behind the scenes)

    💡 Exam Trap: A before-save record-triggered flow that needs to send an email is the wrong design. Email is not available in the before-save path. Move the action to an after-save flow or split the work across two flows.

    Decision Anchor

    Choose a validation rule when the requirement is "block the save when a condition is true and no value needs to be written." Choose a before-save record-triggered flow when the requirement is "set a field on the same record at save with no second DML." Choose an after-save record-triggered flow when the requirement is "react to a record change by reading or writing other records or sending email." Choose a scheduled flow when the requirement is "run a job over a query of records on a cadence with no record change as the trigger." Choose an approval process when the requirement is "obtain named approvals with a built-in audit trail." Choose Flow Orchestrator when the requirement is "sequence multi-step human work that spans days." Choose a case assignment, auto-response, or escalation rule when the requirement is one of the three purpose-built Case behaviors. Never choose Workflow Rules or Process Builder; they are retired for new builds.

    Decision tree for the scenario answer

    Scenario walkthrough: a Case routing requirement

    🎯 Scenario: When a new Case is created from the web-to-case form, the platform must route it to the Technical Support queue if Product Family is Software and to the Field Service queue if Product Family is Hardware, send an immediate acknowledgement email to the contact, and escalate after four business hours of inactivity to the supervisor on duty. Three purpose-built rules cover this without a flow: a case assignment rule with two entries, a case auto-response rule that selects the right template by product family, and a case escalation rule with the four-business-hour trigger. The scenario answer is not "build one big flow." A single flow could do it, but the purpose-built rules are explicit, individually maintainable, and visible to the next administrator in Setup.

    Pricing and licensing implications of the automation choice

    Flow runs are counted against per-org limits but are part of every Salesforce license; there is no per-flow surcharge. Approval processes are similarly unlicensed. Flow Orchestrator carries a separately licensed Orchestration Runs entitlement; small orgs that do not need staged human workstreams should not buy it. Custom Apex invocable actions called from flows are part of standard Apex governance, not a billing line item. The cost of an automation choice is rarely a dollar figure; it is engineering and maintenance time. A scenario that uses a record-triggered flow where a validation rule would do imposes ongoing maintenance cost: when a new administrator looks for the rule, it is buried in a flow node rather than visible in Object Manager.

    ToolLicense or quota dimensionCost driver
    Validation ruleCounted against per-object active rule capMaintenance work when the rule needs to evolve
    Formula fieldCounted against compile-size limit per objectRead cost is the formula complexity
    Roll-up summaryCounted against per-object roll-up summary capRecalculation cost on parent and child saves
    Record-triggered flowCounted against per-org flow interview limitsSubsequent-save DML cost when after-save updates the same record
    Scheduled flowCounted against scheduled flow record limit per intervalRun window length in production
    Approval processCounted against per-object active approval process capManager hierarchy maintenance
    Flow OrchestratorSeparately licensed runsRun volume and active work items

    📊 Limit: A Salesforce object can hold up to 500 active validation rules (verify the current limit in Salesforce Help). The active limit on flows per object and the daily flow interview limit are also documented per edition; design large-volume automations with the interview limit in mind.

    Scenario walkthrough: the "fix it in Flow" trap

    🎯 Scenario: The administrator inherits an org where the previous administrator built 14 record-triggered flows on the Account object, each handling one tiny field assignment. Performance complaints arrive. The right scenario answer for a question that asks for the best long-term approach is consolidation, with a single before-save flow per trigger point (one on create, one on update) covering same-record field assignments and a single after-save flow per trigger point covering related-record work. The platform documents this as the "one flow per trigger point" recommendation. The wrong scenario answer is to keep the 14 flows and reorder them; reordering does not address the per-save overhead of running 14 flow interviews.

    Decision Anchor: validation rule vs. flow Custom Error

    Choose a validation rule for plain enforcement that depends only on values on the record being saved or values on the parent through dot notation. Choose a before-save record-triggered flow Custom Error when the enforcement requires reading sibling records, aggregating child records on a lookup relationship, evaluating a formula too complex for a single validation rule expression, or composing a dynamic error message that depends on retrieved data. The Custom Error element produces the same end-user effect (the save is blocked with a message) and consolidates the rule with related field assignment logic when both belong to the same business event.

    Scenarios with mixed signals

    A scenario sometimes describes a requirement that legitimately fits more than one tool. The exam resolves these by appealing to "best" or "most appropriate" or "with the least configuration." When the stem includes those qualifiers, prefer the purpose-built tool over Flow. When the stem includes "the administrator wants to keep all logic in one place" or "with the maximum flexibility for future requirements," prefer Flow. When the stem includes "the change must be auditable to the approving manager," prefer the approval process. When the stem includes "without writing code," all six declarative tools are still candidates; do not pick Apex.

    💡 Exam Trap: A scenario question whose stem says "with the least amount of configuration" is rarely answered by Flow if a single-rule answer exists. Validation rules, formula fields, approval processes, and the purpose-built Case rules are usually the least-configuration answers in their respective slots.

    Common distractor patterns and how to defuse them

    The distractors on automation scenarios cluster into five families. First, retired-tool distractors: Workflow Rule and Process Builder are placed alongside Flow to catch candidates who studied older material. Second, layer-confusion distractors: an enforcement scenario lists Flow as an option when a validation rule fits, or a computation scenario lists Flow when a formula field fits. Third, timing distractors: a same-record assignment scenario lists after-save Flow as an option when before-save is the right choice. Fourth, scope distractors: a "route new case" scenario lists Flow as an option when the case assignment rule is the purpose-built answer. Fifth, approval-confusion distractors: a non-approval workflow lists approval process as an option to catch candidates who associate "manager" with "approval."

    Defusing each family is a vocabulary check. Workflow Rule and Process Builder are never current answers. Enforcement plus no write equals validation rule. Computation equals formula or roll-up. Same-record assignment at save equals before-save flow. Case routing equals case assignment rule. Named human approval with audit trail equals approval process. Anything that does not fit those slots and still requires action on data change is a record-triggered flow.


    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the Salesforce - Platform Administrato learning hub.