Sub topic 1
Why Workflow Rules and Process Builder Are Being Retired
Salesforce has ended support for Workflow Rules and Process Builder in favor of Flow. Existing automations may continue to run, but they should not remain unmanaged. Migrate them before you need to change behavior, diagnose duplicate actions, or move the org to a new environment.
Prerequisites
Assume that you know Salesforce objects, fields, records, and basic formulas. You should also have access to a sandbox or Developer Edition org.
What a Workflow Rule Does: Criteria and Actions
A Workflow Rule evaluates criteria when a record is created or updated. If the criteria match, Salesforce performs actions. Immediate actions run during the save process. Time-dependent actions run at a specified time relative to a date field.
Common actions include field updates, email alerts, tasks, and outbound messages.
What a Process Builder Process Does: Nodes and Actions
A Process Builder process starts when a record changes or when another process invokes it. Its criteria nodes evaluate conditions. Each node can run immediate actions or scheduled actions. It can also update records, create records, send email, invoke Apex, or start another process.
Both tools hide separate automation behind different interfaces. Flow provides one model for these same jobs and supports more control over paths, order, and debugging.
Inventorying What You Have
Create an inventory before migrating. Record the object, criteria, run frequency, actions, referenced fields, and dependencies. Grouping automations by object exposes overlaps and possible recursion.
Use the Tooling API to find active Process Builder processes:
SELECT ApiName, Label, ProcessType, IsActive
FROM FlowDefinitionView
WHERE ProcessType = 'Workflow' AND IsActive = trueAlso query WorkflowRule and record each rule's TableEnumOrId.
Flow Builder Essentials for Migrators
A flow is a sequence of elements that receives data, evaluates logic, and performs actions. A record-triggered flow starts from a create, update, or delete event. Entry conditions limit which records start the flow. Decisions create separate paths, and actions update fields, send notifications, create records, or call Apex.
Record-Triggered Flows: The Replacement
Use a record-triggered flow to replace both Workflow Rules and Process Builder processes. First preserve the original trigger and criteria. Then choose before-save for updates to the triggering record, or after-save for related records, emails, tasks, and other actions.
Exercise
Which Flow type generally replaces a Workflow Rule that creates a Task after an Opportunity changes?
Show answer
An after-save record-triggered flow on Opportunity.