Sub topic 11
Handling actions with no one-to-one equivalent
This chapter assumes you can read a Workflow Rule or Process Builder process, and that you know the record-triggered flow elements from the earlier chapters. Most actions map directly to a Flow element. A few do not, and they cause most migration surprises, because the old behavior disappears without an error.
Find the gaps before you build
Review each automation's action list and sort every action into one of three groups:
- Direct match, such as a field update, email alert, or task.
- Different shape, where Flow can do the work but needs more elements.
- No native match, where you must pick a substitute.
Do this before you build or run the Migrate to Flow tool. Actions in the second and third groups are the ones the tool may skip or convert only in part, so check its output against your list.
Common gaps and substitutes
| Old action | Why it differs | Substitute in Flow |
|---|---|---|
| Outbound message | Workflow Rules send a SOAP message to an endpoint. Support in Flow depends on your release. | Use the flow action if your org offers it. Otherwise use an HTTP callout action, an invocable Apex action, or a platform event. |
| Update all child records | Process Builder could update related records in one action. | Get Records, a Loop, an assignment that builds a collection, then one Update Records after the loop. |
| Invoke another process | Processes could call other processes. | Call an autolaunched flow as a subflow, or use an invocable action. |
| Re-evaluate workflow rules after a field update | A Workflow flag that lets one field update trigger other rules. | Flow has no flag for this. Model the chain explicitly in one flow, or rely on the flow's own trigger on the updated record. |
| Cross-object field update | A Workflow field update could reach a parent record. | Use an after-save flow with an Update Records element on the parent. |
Decide on a substitute
Prefer the simplest option that preserves the behavior. Write Apex only when the declarative options cannot do the job.
Preserve behavior, not just structure
A substitute is correct only if it behaves the same way. Check these points:
- Timing: Outbound messages and callouts must run after save, so use an after-save flow. A before-save flow cannot make callouts.
- Retries: Workflow outbound messages retry automatically on failure. A flow callout does not. Add a fault path that logs the error or creates a record you can reprocess.
- Volume: A loop that updates children must collect records and run one Update Records after the loop. This keeps it inside governor limits.
Document what you replaced
Keep a short list of every gap, its substitute, and the test that proves it works. You need this list again at cutover, when you confirm that no old behavior is missing.
Exercise
A Workflow Rule sends an outbound message when a Case closes. Your org's Flow Builder has no matching action. Which kind of flow should replace it, and what should you add that the old rule gave you for free?
Show answer
Use an after-save record-triggered flow, because the callout must run after the record is saved. Call an HTTP callout or invocable Apex action. Add a fault path that logs the failure or creates a record to reprocess, because the old outbound message retried automatically and the flow callout does not.