The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Migrating from Workflow Rules and Process Builder to Flow without breaking automations (opens in a new tab)

You will learn a six-step sequence for moving Workflow Rules to Flow safely, and how to choose the right Flow type for each rule.

Why read this

It is a practical checklist rather than a deep technical study.

  1. Inventory every rule and process
  2. Map each rule to a Flow type
  3. Rebuild the logic, don't copy it
  4. Test in a sandbox with real data
  5. Switch over one rule at a time
  6. Document what you migrated and deleted
The six steps of the migration checklist, in order

The article begins with the retirement of Workflow Rules and Process Builder in favor of Flow, and argues that a rushed migration is how working automations quietly break. It recommends a checklist that runs in a fixed order, starting with an inventory of every rule and process in the org: the object each fires on, its criteria and its actions.

It suggests using the Flow Migration Tool in Setup to see what can be converted automatically, while treating the output as a starting point. Rules with time-based actions and complex criteria are said to need manual review. The author then maps each rule to a Flow type: a same-record field update becomes a before-save Record-Triggered Flow, a task or email becomes an after-save one, and a scheduled rule becomes a scheduled Flow.

The next steps are to rebuild the logic rather than copy it, questioning criteria that may encode outdated business rules, and to test in a sandbox with real create and edit scenarios, paying attention to order of execution and run context. The article advises switching over one rule at a time, running old and new in parallel where possible, and documenting what was migrated and what was deleted.

Read the original at dev.to (opens in a new tab)

Worth reading?