Salesforce · Flow · Automation

Salesforce Automation in 2026: Flow, Apex, Approvals and Agentforce

Workflow Rules and Process Builder are out of support, Flow does most of the work, and AI agents now act through your automation. Here is which Salesforce automation tool to use for which job, how to migrate what you have, and the practices that keep it reliable as you grow.

Key Takeaways

  • Salesforce automation now runs on two pillars: Flow for most work, and Apex for high-volume or complex logic. AI agents in Agentforce act through the same flows and Apex.
  • Salesforce ended support for Workflow Rules and Process Builder on December 31, 2025. Existing automations still run, but there are no bug fixes and no customer support.
  • The Migrate to Flow tool converts many rules and processes, but tasks, record types, some formulas and several actions need manual work.
  • Salesforce's architects choose by "automation density": Flow for low, Flow plus invocable Apex for medium, an Apex trigger framework for high.
  • ISNEW, ISCHANGED and PRIORVALUE still matter. In Flow they sit alongside $Record__Prior and the "only when updated to meet the conditions" entry option.

Salesforce automation is the use of Salesforce's built-in tools, mainly Flow, Apex, approvals and assignment rules, to run business processes without manual work: routing leads, updating records, sending alerts, requesting approvals and syncing data. In 2026 Flow is the main tool, Apex covers what Flow cannot, and AI agents use both to take action.

We first published this article in 2022, when the advice was to build with Workflow Rules and Process Builder. Salesforce has since ended support for both, so we have rewritten it from the ground up. This guide is for operations, sales and service leaders at growing and mid-market companies, and for the Salesforce admins who support them. It covers which tool to use for which job, how to move off the legacy tools, how change detection works in Flow, and the practices that keep automation reliable as your org grows.

Section 01 · Definition

What Is Salesforce Automation?

Salesforce automation is any rule, flow, trigger or agent that does work in Salesforce when something happens, on a schedule, or when a user or system asks. It handles the repeatable steps people would otherwise do by hand: assigning a lead, updating a field, creating a follow-up record, emailing a customer, requesting approval or calling another system.

It helps to separate two meanings of the phrase. "Sales force automation" (SFA) is the older industry term for CRM software that automates the sales process. This article is about platform automation: the tools inside Salesforce you use to build those processes for sales, service, marketing and operations teams.

Every automation answers three questions:

  • When does it start? A record is created, updated or deleted; a time arrives; a platform event fires; a user clicks a button; or an AI agent decides to act.
  • What should it check? Entry conditions that decide whether this record, at this moment, needs the automation.
  • What does it do? Update fields, create or update related records, send emails or notifications, start an approval, call Apex or call an external system.
Salesforce cloud logo on a black background with the caption Salesforce Automation
Platform automation in Salesforce: the tools that run your processes when records change, on a schedule, or on request.
Section 02 · The Toolkit

Which Salesforce Automation Tools Should You Use in 2026?

Build new automation in Flow Builder. Use Apex when volume or complexity outgrows Flow, Flow Approval Processes for approvals, and Flow Orchestration for multi-step work involving several people. Assignment, auto-response and escalation rules still do their narrow jobs well. Agentforce agents sit on top, calling flows and Apex as actions. Here is the toolkit as Salesforce documents it in the Winter '27 release.

ToolWhat it doesUse it forStatus
Record-triggered flowRuns when a record is created, updated or deleted, before or after the saveField updates, related records, notifications, scheduled follow-upsDefault choice
Schedule-triggered flowRuns at a set time and frequency for each record in a batchNightly clean-ups, renewal reminders, recurring checksCurrent
Screen flowA guided form that needs user inputIntake wizards, guided case handling, data-entry helpCurrent
Autolaunched flow (no trigger)Runs when something calls it: Apex, another flow, a button, an API or an agentReusable subflows and Agentforce agent actionsCurrent
Platform event-triggered flowRuns when a platform event message arrivesReacting to events from integrations or other systemsCurrent
Flow Approval ProcessesMultistage reviews with approval steps, background steps and dynamic routingDiscount, contract, spend and onboarding approvalsRecommended
Flow OrchestrationStages of steps assigned to different people and systemsCross-team processes such as onboarding or order fulfilmentCurrent
Apex triggers and invocable ApexCode that runs on record events or is called from a flowHigh-volume, complex or transaction-critical logicCurrent
Assignment, auto-response and escalation rulesRoute leads and cases, send automatic replies, escalate cases on timeLead and case routing basicsCurrent
Workflow Rules and Process BuilderThe previous generation of declarative automationNothing new: migrate existing ones to FlowSupport ended Dec 31, 2025

Sources: Salesforce Help on flow types, Flow Approval Processes, Flow Orchestration and assignment rules, plus the Winter '27 automation release notes.

Section 03 · End of Support

What Happened to Workflow Rules and Process Builder?

Salesforce ended support for Workflow Rules and Process Builder on December 31, 2025. Your active rules and processes keep running, and you can still edit, activate and deactivate them. What changed is that Salesforce no longer provides customer support or bug fixes for either feature, and it recommends building all new automation in Flow Builder.

Salesforce's end-of-support article gives the reason plainly: it wants to focus development on one modern, extensible, low-code automation tool, and Flow Builder is that tool. The help pages now file Workflow Rules and Process Builder under "Legacy Salesforce Flow Features".

What still works. Active workflow rules and processes run as they did before. You can open, edit, activate and deactivate them, so nothing breaks the day support ends.

What you lose. No bug fixes and no Salesforce support. If a legacy rule misbehaves after a release, or conflicts with a newer flow on the same object, you are on your own. Mixed old and new automation is also harder to troubleshoot, because the tools run at different points in the save order.

How to find what you still have: in Setup, open Process Automation > Workflow Rules and sort by the Active column, then open Process Automation > Process Builder and sort by Status. That list is your migration backlog.

Section 04 · Migration

How Do You Migrate Workflow Rules and Process Builder to Flow?

Inventory what is active, rationalise it, convert it with the Migrate to Flow tool in a sandbox, rebuild what the tool cannot convert, then test, activate the flow and deactivate the original. The tool handles a lot, but not everything. Treat the migration as a chance to consolidate automation, not just copy it one-for-one.

1. Inventory.
→ List every active workflow rule and process by object, with what it does and who owns it. Note which ones overlap with existing flows or Apex triggers.
2. Rationalise.
→ Retire automation nobody needs, merge rules that do the same job, and decide per object whether Flow alone is enough or Apex is needed (see Section 05).
3. Convert in a sandbox.
→ In Setup, search "Migrate to Flow", select the rule or process, and check the Migratable column for full or partial support. The "Needs Review" list shows actions that need more set-up.
4. Rebuild the gaps.
→ Recreate anything the tool could not convert, using Decision elements, custom condition logic, Create Records for tasks, or an asynchronous path for callouts.
5. Test, switch, monitor.
→ Test every path, activate the flow, deactivate the original rule or process, and watch error emails and debug logs for the first weeks.

According to Salesforce's Migrate to Flow considerations, processes become after-save flows (you can re-optimise them for fast field updates afterwards), and workflow rules that only update fields become before-save flows. These are the limits most likely to catch you out:

1. Some workflow rules cannot be converted. Rules that create tasks or use record types, global variables, related-record fields, relative dates, multiple currencies or formulas with functions such as TimeNow, IsClone or $RecordType need rebuilding by hand.
2. Only record-triggered processes are supported. Custom event and invocable processes are not, and neither are cross-object references in formulas.
3. Several process actions need extra configuration. Post to Chatter, Quick Action, Submit for Approval, Send Custom Notification and Send Surveys all land in "Needs Review".
4. Recursion behaves differently. A process that re-evaluated a record several times is evaluated only once after migration. Scheduled actions migrate only when a single criterion is selected.
5. Order of execution changes. Record-triggered flows run at a different point in the save than workflow rules, so a converted rule can behave differently alongside your other automation. Test the whole object, not only the new flow.
Section 05 · Decision Guide

Salesforce Flow vs Apex: How Do You Choose?

Use Flow for most record-triggered automation. Add invocable Apex when a flow needs logic that is hard to express declaratively, and move an object to an Apex trigger framework when its automation is dense: many automations, large record volumes and long chains of downstream updates. That is the recommendation of Salesforce's own architects.

The Record-Triggered Automation decision guide, updated in March 2026, describes Flow and Apex triggers as "two complementary pillars" and calls record-triggered flow "the ideal choice for most teams". It chooses between them by automation density: the number of automations on an object, the record volumes they handle and how many downstream updates each one sets off.

Automation densityTypical signsRecommended approach
LowFewer than 15 automations on the object, 1–200 records per transaction, 0–1 downstream updatesRecord-triggered flow
Medium15–30 automations, standard batch sizes, 2–4 downstream updatesRecord-triggered flow plus invocable Apex
HighMore than 30 automations, 2,000–10,000+ records, 5+ downstream updatesApex trigger framework driven by metadata

Thresholds from the decision guide. Whatever the density, the guide recommends one entry point per object, so all of an object's record-triggered logic runs in a predictable order.

Where Flow is stronger

Speed of delivery, visibility in Flow Trigger Explorer, automatic bulkification and retries, and scheduled paths that cancel or reschedule themselves when the record changes.

Where Apex is stronger

High-volume bulk processing, maps and sets for complex data handling, transaction control with savepoints and rollback, sophisticated validation and caching.

Where only Apex works

After-undelete logic has no Flow equivalent, and invocable Apex cannot be called from a before-save flow.

A published Twopir project shows the split in practice. For an enterprise SaaS operations team re-keying form submissions by hand, Flow handled routing, owner assignment and confirmation emails, while custom Apex handled duplicate detection and matching. The case study reports zero manual data-entry steps remaining and duplicate-safe record creation across Lead, Contact and Case.

Section 06 · Record-Triggered Flows

Which Record-Triggered Flow Option Should You Use?

Use a before-save flow (Fast Field Updates) when you only change fields on the record that triggered the flow. Use an after-save flow (Actions and Related Records) to touch other records or send alerts, an asynchronous path for callouts, and a scheduled path for work that should happen later. Choosing the right option is the single biggest performance lever in Flow.

Salesforce's help states that a record-triggered flow can update a record 10 times faster than a record-change process when it uses a before-save update, because the change is made before the save and needs no second database operation.

OptionRunsCan doTypical use
Fast Field Updates (before save)Before the record is saved, ahead of Apex before triggersChange the triggering record only; Assignment, Decision, Get Records and Loop elementsDefaulting, formatting and calculated fields
Actions and Related Records (after save)After the record is savedCreate or update related records, send emails, call subflows and actionsFollow-up tasks, child records, notifications
Asynchronous pathIn the background, after the save is committedCall external systems and other long-running workPushing a closed deal to an ERP or billing tool
Scheduled pathAt a set time relative to the trigger or a date field on the recordDelayed actions in batches of up to 200 recordsRenewal reminders, SLA nudges, stale-deal alerts

Details from Salesforce Help on record-triggered flow considerations and scheduled paths. Scheduled paths run in system context and use asynchronous limits; you can see pending items under Setup > Time-Based Automations.

Section 07 · Change Detection

How Do ISNEW, ISCHANGED and PRIORVALUE Work in Salesforce Flow?

ISNEW() is true while a record is being created, ISCHANGED() is true when a field's value differs from before, and PRIORVALUE() returns a field's previous value. Since the Summer '21 release, record-triggered flows for new and updated records support all three in formulas, written against $Record. Flow also offers $Record__Prior and an entry option that fires only when a record changes into your conditions.

Our 2022 version of this article showed these functions inside workflow rules. They are just as useful now, but how you use them in Flow is different. The Summer '21 release note explains the syntax change: ISCHANGED(Account.Rating) in a process becomes ISCHANGED({!$Record.Rating}) in a flow. None of the three are available in flows that run when a record is deleted.

NeedFunction or optionWatch out for
Run only on new recordsISNEW(), or set the flow to trigger on "A record is created"Always false in time-based workflow actions and approval field updates
Run when a field changesISCHANGED({!$Record.StageName}) in an entry formula, or the Is Changed operatorReturns false on a new record, so it never fires on create
Compare old and new values{!$Record__Prior.Amount} against {!$Record.Amount}All $Record__Prior values are null when a new record triggers the flow
Fire once, when a record first meets the conditionsEntry option "Only when a record is updated to meet the condition requirements"Required if you add scheduled paths from the Start element

Three patterns worth copying

  • Catch creation and later changes in one flow. If a flow runs when a record is created or updated, the Is Changed operator will not fire on create, because a new record has no prior value. Salesforce's knowledge article recommends an entry formula such as OR(ISNEW(), ISCHANGED({!$Record.Status})), or two separate flows.
  • React to a specific transition. To act only when an opportunity moves from Negotiation to Closed Won, check {!$Record__Prior.StageName} as well as the new value. The global variables reference documents $Record__Prior for flows that run on update, or on create and update.
  • Stop flows that run on every save. Salesforce warns that a flow with no entry conditions runs on every record change and can exceed governor limits. The "only when updated to meet the conditions" option runs a flow once, when a record moves into your conditions, which also prevents most recursion.

One documentation nuance: Salesforce's general flow formula considerations list PRIORVALUE as unsupported in flow formula resources. For old-versus-new comparisons in a record-triggered flow, $Record__Prior is the documented, dependable route. Outside Flow, ISNEW, ISCHANGED and PRIORVALUE still work in validation rules and assignment rules.

Section 08 · Approvals

Classic Approval Processes or Flow Approval Processes?

For new approvals, use Flow Approval Processes. Salesforce positions them as the modern alternative to Classic Approval Processes, with record-triggered starts, dynamic routing based on data and business rules, Apex extensibility and detailed logging. Classic Approval Processes are still available and no end of support has been announced, but Salesforce now files them under its legacy features.

A flow approval process is built in Flow Builder as a sequence of stages. Each stage holds approval steps that assign work to a user, group or queue, and background steps that run without anyone's input. Approvers can reply to the approval email with a keyword, and the process can start when a record is submitted or when a qualifying record is created or updated. Salesforce's approvals overview notes one case where there is no choice: approvals on the User object are only possible with Flow Approval Processes.

The Winter '27 release adds a Request Approvals component that puts up to 10 flow approval processes on a record page, and lets admins delete approval submission records to meet GDPR and other compliance requirements.

Flow Orchestration goes a step further for processes that cross teams. An orchestration is a sequence of stages, each with interactive steps (a screen flow assigned to a person) and background steps (an autolaunched flow). Salesforce suggests it for advanced approval processes, task lists for groups and other multi-step processes, such as customer onboarding that involves sales, finance and implementation.

Section 09 · Use Cases

What Are Good Salesforce Automation Examples for Each Team?

The best first automations are frequent, rule-based and currently done by hand: routing leads and cases, creating follow-up work, reminding people about deadlines, requesting approvals and syncing data with finance or marketing systems. These examples show which tool usually fits each job in a typical growing or mid-market org.

Sales

Lead assignment rules or a flow route new leads by territory or product. A scheduled path flags opportunities with no activity for 14 days. A flow approval process handles discounts above a set threshold.

Service

Case assignment rules send cases to the right queue, auto-response rules acknowledge them, and escalation rules raise overdue cases within business hours. A screen flow guides agents through common case types.

Marketing

A before-save flow standardises lead source and country values. An after-save flow adds qualified leads to the right campaign and notifies the owner when a lead score crosses a threshold.

Finance and operations

When a deal is Closed Won, an asynchronous path sends it to billing or ERP. A schedule-triggered flow creates renewal opportunities 90 days before contract end. Flow Orchestration runs onboarding across teams.

The thresholds above (14 days, 90 days) are illustrations, not recommendations: set yours from your own sales cycle and contract terms. For routing in Service, Salesforce allows one active rule of each type (assignment, auto-response and escalation) at a time, with limits on rules and entries that matter in larger orgs.

Section 10 · AI

Where Does Agentforce Fit in Salesforce Automation?

Agentforce agents decide what to do; flows and Apex do it. An agent can read Salesforce data, but it changes data only through agent actions, and those actions call flows, Apex or prompt templates. A well-built automation layer is what makes an agent useful, which is why automation clean-up usually comes before an AI project.

Trailhead's guide to agent-ready flows sets out the rules. Agent actions support only autolaunched flows with no trigger. The flow's description becomes an instruction the agent reads when deciding whether to use it. Each action needs clear input and output variables, and Salesforce advises many small flows rather than one large one. The Agent Script actions reference adds an optional user-confirmation step before an action runs.

  • Write descriptions as if an agent will read them, because it will. The decision guide calls element descriptions "critical for AI and agent-based tools".
  • Keep the logic in reusable subflows. The same autolaunched flow can serve a button, a record-triggered flow and an agent action.
  • Keep people in the loop for important steps. Flow Approval Processes and user confirmation on agent actions let agents propose and people approve.

Flow Builder is gaining AI help too: Winter '27 adds Flow Author (beta) for building flows through conversation, and Salesforce Help describes using Agentforce to troubleshoot flow errors. For the wider picture, see our guide to AI-powered tools in Salesforce. Our Agentforce automation services cover the flows, Apex, approvals, routing and integrations an agent needs to finish the work it starts.

Section 11 · Best Practices

What Are the Best Practices for Salesforce Automation?

Plan before you build, give each object one predictable entry point, use precise entry conditions, keep database operations out of loops, add fault paths, test every path in a sandbox, and document every flow. These habits come straight from Salesforce's Flow best practices and the architects' decision guide.

  1. 1

    Control the order. Use Flow Trigger Explorer to see every record-triggered flow on an object and set its Trigger Order. Avoid both extremes: dozens of unordered flows, or one "mega-flow" that the decision guide calls an anti-pattern.

  2. 2

    Use precise entry conditions. Run a flow only when it has work to do. The decision guide names before-save flows and precise entry conditions as the biggest performance gains.

  3. 3

    Keep database work out of loops. Flow batches interviews automatically, but a Create Records element inside a loop still performs one DML operation per pass. Collect records in the loop and save them once at the end, as Salesforce's bulkification guidance explains.

  4. 4

    Add fault paths everywhere that can fail. Send a useful message to users and an alert with details to the admin team, instead of "An unhandled fault has occurred in this flow". Our post on fault path strategies goes deeper.

  5. 5

    Respect governor limits. Flows share Apex's per-transaction limits, including 100 SOQL queries, 150 DML statements and 10,000 ms of CPU time. If a limit is exceeded, the whole transaction rolls back, even where a fault path exists.

  6. 6

    Test in a sandbox, every path. Build flow tests for record-triggered and autolaunched flows. Winter '27 adds Flow Test Mode (beta), with mock outputs for Action and Subflow elements.

  7. 7

    Never hard-code record IDs, and document everything. Use clear labels, API names and descriptions, keep flows in source control, and give admins a custom permission to bypass automation during data loads.

Most automation problems we are asked to fix come from overlap: a workflow rule, a process, two flows and an Apex trigger all updating the same object. A Salesforce health check maps what runs where before anything is changed.

Section 12 · Bottom Line

The Bottom Line on Salesforce Automation

Salesforce automation has settled into a clear shape: Flow for most work, Apex for dense or complex objects, Flow Approval Processes and Flow Orchestration for work involving several people, and Agentforce agents that act through all of them. The legacy tools still run, but every month they stay in place adds risk and makes the next change harder.

  1. 1

    Inventory your active Workflow Rules and Process Builder processes, and plan their move to Flow.

  2. 2

    Choose Flow or Apex per object by automation density, with one entry point per object.

  3. 3

    Use before-save flows for same-record updates and precise entry conditions everywhere.

  4. 4

    Use $Record__Prior, ISNEW and ISCHANGED to run automation only when something meaningful changes.

  5. 5

    Build small, well-described autolaunched flows that people, processes and AI agents can all reuse.

Ready to Start

Get a Clear Plan for Your Salesforce Automation

On a 30-minute discovery call, a Twopir Salesforce architect will review what runs in your org today, where legacy rules and overlapping flows create risk, and what to migrate, consolidate or build first.

Schedule a Discovery Call

FAQ

Frequently Asked Questions

Salesforce automation is the use of built-in Salesforce tools, mainly Flow, Apex, approvals and assignment rules, to run business processes without manual work. Typical examples are routing leads and cases, updating fields, creating follow-up records, sending alerts, requesting approvals and syncing data with other systems.

No. Salesforce ended support for both on December 31, 2025. Existing rules and processes keep running and can still be edited, activated and deactivated, but Salesforce no longer provides customer support or bug fixes for them. It recommends building all new automation in Flow Builder.

No. It converts many workflow rules and record-triggered processes, including field updates, email alerts and scheduled actions with a single criterion. Rules that create tasks or use record types, some formula functions and several process actions such as Submit for Approval need manual rebuilding or extra configuration. Always test in a sandbox.

Use Apex when an object's automation is dense: more than about 30 automations, thousands of records per transaction, or long chains of downstream updates. Apex is also the only option for after-undelete logic. For medium density, Salesforce's architects recommend record-triggered flows that call invocable Apex.

Yes, in record-triggered flows for new and updated records, written against $Record, for example ISCHANGED({!$Record.Status}). They are not available in flows triggered by deletion. To compare old and new values, the documented route is the $Record__Prior global variable, which is null when a new record triggers the flow.

Use Flow Approval Processes for new approvals. Salesforce describes them as the modern alternative, with record-triggered starts, dynamic routing, Apex extensibility and detailed logging. Classic Approval Processes still work and no end of support has been announced, but Salesforce now groups them with its legacy features.

Agentforce agents change Salesforce data through agent actions, which call autolaunched flows, Apex or prompt templates. The flow's description tells the agent when to use it. Small, well-described, reusable flows make agents more reliable, so cleaning up automation is usually the first step of an Agentforce project.

TC

Twopir Consulting

Salesforce Partner · HubSpot Partner

Twopir Consulting helps growing and mid-market companies solve complex CRM, integration, and business system challenges. We implement, rescue, optimize, and integrate complex CRM and revenue systems, including Flow, Apex and Agentforce automation on Salesforce, for 500+ clients over 12+ years.