Skip to content

Salesforce automation

From Process Builder to Flow

Published on October 13, 2022 · 5 min read · Lorenz Wolf

made with AI

Go with the Flow – When and why is Process Builder being replaced by Flows?

What exactly are Flows?

In recent years, Salesforce has made many changes to process automation. One feature in particular keeps coming up: Salesforce Flows. First, it helps to understand the product terminology, because "Salesforce Flows" is basically the umbrella term for Salesforce's declarative "low-code" process automation solution. It consists of the two point-and-click tools "Process Builder" and "Flow Builder".

Salesforce plans to stop allowing new automations to be built with the older Process Builder by the end of 2022. Going forward, Flow Builder will therefore become the central tool for automating processes in Salesforce. There are several reasons for this shift. First, splitting automation across several dissimilar tools increases maintenance effort. Is our automated order billing modeled in a Flow or in Process Builder? We need an automation for a complex evaluation process – which tool is best suited for that? By moving to a single unified solution, the answer to these questions simply becomes "Flows".

But above all, Salesforce's newest automation flagship offers many powerful advantages over the older Process Builder.

The strengths of Flows compared to Process Builder:

Overall, Flows are more performant and faster than processes built with Process Builder. Features such as asynchronous execution, entry conditions, or fast field updates ("before save") come into play here.

Flows can implement more complex processes across multiple objects – Process Builder was limited to actions on parent or child objects.

Flows can delete records – something none of the other automation tools can do.

Error handling in Flows is far more mature and is continually being improved. The debugger allows you to test different record updates, and CRUD operations can be checked against their limits.

So-called Screen Flows make it possible to build processes in which the user feeds information into a Flow via input fields. This feature is very well suited for building custom processes (for example, creating billing schedules, etc.).

In principle, there are hardly any remaining functional gaps between Flows and the predecessor tools. A prime example here is probably the so-called Outbound Messages, which can now also be implemented in Flows, as well as the ability to control execution order.

The remaining differences are mainly a matter of usability, whereas Flows generally still cover additional scenarios that, due to Process Builder being phased out, are no longer being updated there – for example, setting time-based actions to the exact minute.

Where did the time go? – The retirement schedule

Of course, Salesforce is not discontinuing the Process Builder service entirely right away. In a first step, the ability to create new processes using Process Builder (or also Workflow Rules) will be switched off. This step is planned for the end of 2022. However, this date is not yet final and is subject to change. According to Salesforce, now is the best time to get familiar with Flows and also to start migrating existing Processes or Workflow Rules to Flows. As the final step of the 'end of line' process, the complete retirement of all Process Builder and Workflow Rules services is planned. However, there is no official timeline for that yet either.

How do you handle old processes? – Migration and cleansing

With the Summer '22 release, Salesforce introduced a migration tool that automatically converts a Workflow Rule into a Flow. Accordingly, a Process Builder migration tool is also expected to follow soon as a successor product. Exactly what this tool will look like, and how much migration effort will ultimately be involved, has not yet been announced.

With the Spring '22 release, Salesforce offers the "Flow Trigger Explorer", which will make it easier going forward to orchestrate and control the execution order of record-triggered Flows that depend on other record-triggered Flows. In terms of simplifying Flows, Salesforce will continue to roll out improvements in the near future, further optimizing the tool's user-friendliness and reducing weaknesses in runtime behavior.

Alongside migration, this transition also offers another way to handle old Process Builder workflows – evaluating old processes. "Are existing Workflow Rules or Process Builder processes still needed in this form at all, or can they be retired?" Automations that were created a long time ago tend to become redundant. Alternatively, their functionality may by now need adjustments – a perfect scenario for getting to grips with Flows. A thorough analysis of outdated processes is therefore well worth doing before you even think about migration.

Conclusion

Flows can be used for simple tasks, such as sending emails or deleting records under certain conditions, as well as for complex processes with many "if-then" statements or iterations across multiple objects. Salesforce will continue to develop Flows going forward, and you can expect plenty of new features and enhancements. Flow Builder is already a powerful tool for implementing business logic, and it contributes significantly to greater efficiency. Moving from Process Builder to Flow Builder is an opportunity to get familiar with the tool, or to further build on the know-how you already have. Thanks to Flow Builder's graphical "point-and-click" design, translating business logic into an automated process is easier than with a code-based solution built in Apex. Still, technical understanding is necessary, especially for more complex requirements around object relationships and algorithms. For many users and admins who have so far had little contact with the new automation tools, this transition can be a real challenge. Here at factory42, we currently help many clients with this transition as well as with process digitalization and automation in general. Given the sheer range of possibilities and benefits in this area, our clear recommendation is to "go with the Flow".

Do you have questions about the transition? Sign up right here for our Lunch & Learn session.

Originally published on blog.factory42.com

About the author

Lorenz Wolf

Junior Salesforce Consultant