How to: Convert Salesforce Process Builders to Flows

Chances are you’ve heard about Salesforce retiring Workflow Rules and Process Builder:  “Starting in Summer ’23, we’re blocking the creation of Process Builder Processes. You can still activate, deactivate, and edit any existing Processes. For new automation, use Flow.”  But I’d argue it’s time to just fully audit and migrate all your Process Builders.  There are a few reasons why:

Node: Not Primary Contact
Criteria (ALL):
1. Account.Primary_Contact__r.Id != Contact.Id
2, Primary_Contact__c = TRUE
1. Uncheck Primary Contact – IF(Primary Contact = TRUE){ Primary Contact = FALSE }
Evaluate Next Criteria

This Process Builder was waiting for a Contact to be updated, and if the Contact.Primary_Contact__c checkbox was checked, but didn’t match the Account.Primary_Contact__c lookup on the associated Account record, it would uncheck the box on the Contact. A much cleaner way to do this would be to listen for changes to the Account.Primary_Contact__c lookup field and check/uncheck the Primary_Contact__c checkbox on the relevant Contacts when updated.

Note: there’s also the edge case to consider if a Primary Contact is re-parented to a different Account, but you’d have to decide what the correct business logic would be in that situation.

Do future you a favor

If you’re daunted by a full audit/migration, start small.  Anytime you need to edit an existing Process Builder, that’s the cue to rebuild it in Flow, and delete the old Process Builder once you’ve verified the functionality in Flow. This will help you hack away at the backlog.

Here’s a sample Opportunity – Before Save – Set Default Values from Account (Flow):

If you’re looking for even more granular advice (i.e. how to start this process in a sandbox and perform extensive testing of all automation), Salesforce recorded a good webinar on the topic:


Want tips, tutorials, best practices, and other cool stuff delivered to your inbox?  Subscribe to the quarterly Sponge newsletter >

Sponge | Marketing and Revenue Ops

Get a System Audit

Whether you inherited a new instance or just want a second opinion, we'll dive in and benchmark your tech stack.

  • Hidden
  • Hidden
  • Hidden
  • Hidden
  • Hidden

Sponge | Marketing and Revenue Ops

Download Resource

Use this form to recieve your free resource in your inbox today!