Sub topic 3
Handling Actions Without a One-to-One Equivalent
Assume you know Salesforce objects, formulas, and existing Workflow Rules or Process Builder. This chapter focuses on the migration decisions that require design rather than direct conversion.
Find and redesign unsupported actions
Some legacy actions have no direct Flow equivalent. A field update usually becomes an Assignment in a before-save flow. An email alert, task, record creation, or Apex action usually becomes an after-save flow element. For unsupported actions, identify the business result first, then choose a replacement such as an invocable Apex action, an email alert, or an external integration.
Review the Migrate to Flow output
Use Setup's Migrate to Flow tool for eligible Workflow Rules and Process Builder processes. Treat its output as a draft. Check the trigger object, entry conditions, formula conversions, action order, scheduled paths, and references to inactive resources. Compare the generated flow with the original automation and record every intentional difference.
Account for execution order
Record-triggered flows run within Salesforce's save transaction. Their position relative to validation rules, Apex triggers, duplicate rules, and other automation affects the result. An after-save flow can update related records, but that update can invoke automation on those records. Draw the transaction before combining flows.
Consolidate and control flow order
Prefer one clearly owned automation design per object. Combine overlapping criteria where practical, and use separate flows only when ownership or timing requires it. Set Flow Trigger Order so dependent flows run predictably. Document which flow owns each field update and outbound action.
Keep flows bulk-safe
A flow must handle a collection of records in one transaction. Avoid Get Records, Create Records, or Update Records inside loops when a collection-based operation will work. Prevent recursion by using precise entry conditions, checking whether relevant values changed, and avoiding updates that retrigger the same flow without purpose.
Test, then cut over
Test inserts, updates, unchanged updates, bulk updates, scheduled paths, failures, and interactions with other automation. A bulk test should update 200 records and verify one expected result per record. Use Flow Debug, fault paths, debug logs, and assertions to find missing or duplicate actions.
Disable the old automation only after the replacement is deployed and validated in a sandbox. Deploy the flow and supporting metadata together, activate it during a controlled window, monitor errors and outcomes, and retain a rollback plan.
Exercise
A migrated flow updates the same record that triggered it. What should you inspect first?
Show answer
Inspect the entry conditions and changed-value checks for recursion, then verify whether the update is actually required.