Sub topic 9
Workflow Rules and Process Builder: what they were and why they are legacy
This chapter assumes you know the Salesforce data model, can navigate Setup, and have read the earlier chapters on Flow fundamentals and record-triggered flows. You will meet these two tools mostly in existing orgs, so the goal is to recognize them, understand their limits, and know why new work belongs in Flow.
What each tool did
Workflow Rules were the first declarative automation on the platform. A rule evaluates criteria when a record is created or edited. If the criteria match, it runs immediate or time-dependent actions. The available actions were limited to four types:
- Field update
- Email alert
- Outbound message
- Task creation
Process Builder came later. It offered a visual canvas with criteria nodes and action groups. It could do more than Workflow Rules, including creating records, updating related records, posting to Chatter, launching a flow, and calling Apex.
| Capability | Workflow Rule | Process Builder | Record-triggered flow |
|---|---|---|---|
| Update the same record | Yes | Yes | Yes, and before-save avoids an extra save |
| Create or update related records | Limited to a few related updates | Yes | Yes |
| Loops and branching on collections | No | No | Yes |
| Fault handling | No | No | Yes |
| Receives new feature investment | No | No | Yes |
Why they are legacy
Salesforce stopped enhancing both tools and directed customers to Flow. Salesforce has announced an end-of-support date for Workflow Rules and Process Builder, so check the current release notes for the exact timeline. Existing automations keep running for now, but you cannot rely on fixes or new features. The practical reasons to move are these:
- Fragmentation. Two older tools plus Flow means three places to look when a record behaves strangely.
- Performance. A field update in a Workflow Rule or Process Builder causes the record to be saved again. That re-save can run triggers and other automation a second time. A before-save flow changes the record without that extra save.
- Weak error handling. Process Builder has no fault paths. A failure rolls back the transaction with a generic error.
- No collection handling. Neither tool can loop over a list of records.
- Debugging. Flow offers debug runs and flow interview details. The older tools offer far less.
Reading the old logic
Before migrating, inventory what exists. In Setup, open Process Automation Settings and the Workflow Rules and Process Builder pages. Note, for each object, which rules are active and what they do. Process Builder processes appear as flows in Flow Management, so you can filter the Flows list by type.
The re-run in the diagram is the source of many surprises. A trigger that assumes it runs once per save can run twice, which matters when you coordinate tools later in the order of execution chapter.
What to do next
Treat the existing rules as a specification. Capture each one's criteria, actions, and any time-dependent behavior. The next chapter covers how to plan the move to Flow.
Exercise
A Process Builder process updates a field on the triggering Account whenever AnnualRevenue changes. Name two reasons to replace it with a before-save record-triggered flow.
Show answer
A before-save flow changes the field during the original save, so there is no extra save and no second run of triggers and other automation. It also keeps the logic in Flow, which is actively developed, supports fault handling and debug runs, and avoids maintaining a separate legacy tool.