A Crash Course on Flow Builder for Salesforce Admins
Not sure where to start?
June 4, 2020
Share the link
Link Copied
Every good Salesforce org uses automations—automatic processes that cut down on tasks that would otherwise need to be done manually. Salesforce admins have a whole suite of tools at their disposal to make these automations happen, but none more powerful than Flow.
Flow extends other declarative solutions like Process Builder by giving admins the ability to automate the creation, updation and deletion of one or many records based on complex logic.
As an admin, Flow Builder gives you the power to design complex business automations without relying on Apex development or expensive third-party solutions. The power is in your hands! Using the Salesforce platform’s built-in tools means easier maintainability than custom code. Plus, since you’re building it yourself, you can perfectly tailor the Flows to meet your specific needs.
Additionally, Flows keep getting better and more powerful with each Salesforce release. Now is a great time to learn how to use this tool because its capabilities and popularity are only going to increase.
There are two types of Flows. They are both built directly in Flow Builder and the process for creating them is the same.
Screen Flows interact directly with the user through one or more screens in a wizard-like interface. They can take user input and use that information within the Flow.
Autolaunched Flows operate “behind the scenes” and can be configured to launch from a Process, another Flow, when a user clicks a button or link—or from an Apex class.
To get started building Flows, simply go to “Flows” in Setup and click the “New Flow” button.
When building a Flow, you’ll need to be familiar with Elements and Resources. These are found under the “Elements” and “Manager” tabs of the Toolbox, respectively.
The Elements of a Flow are nodes you can place in the Flow builder that literally tell the Flow what to do.
To build a Flow, place the elements you need on the canvas, then click and drag from one element to another to create a path that determines the order that elements are processed in. Make sure to give the elements you create helpful names and descriptions!
Resources in a Flow are values that can be referenced throughout the Flow. This includes variables, which are dynamic values that can be accessed and modified by the elements of your Flow. Think of each variable as a box that can hold one type of data. Some of your boxes might hold text, some might hold numbers, some might hold entire records, and so on.
Records or fields from a Get Records element are saved as resources so that you can refer to them later in the Flow.
What makes Flows so powerful is their ability to write complex logic without writing any code. One tool for accomplishing this is the Loop element. Loops allow each record in a collection to be processed individually. Record Collections are a special type of variable that stores multiple records.
A loop element takes each record in a collection, one at a time, through any nodes placed within the loop.
In this simple example, the loop element is assigned a collection of records of a custom object. Each record from that collection moves through an Assignment element that updates certain fields, and then a second Assignment element that adds that record to a new collection.
Later, outside of the loop, an Update Records element will process that new collection variable and save the updated records to Salesforce.
Keep in mind that logic can be nested! In other words, you can have a loop within a loop, a decision element inside of a loop, or anything else that fits your business scenario.
You’re on your way to making awesome Flows that take repetitive tasks out of your users’ hands! On your journey to master Flow Builder, keep these best practices in mind:
Always keep your “Data” elements outside of a loop. Get, Create, Update and Delete Records elements count towards Salesforce’s limits on DML statements in a single operation. Including them inside of a loop is a recipe for hitting those limits. Instead, use an Assignment node to assign the records to a collection, and then create/update/delete the whole collection outside of the loop.
Document your elements and resources. Use those description fields! This will make the Flow easier to understand and maintain whether it’s you or another admin when the Flow needs to be updated.
Use a consistent naming convention. When naming your elements and resources, develop a consistent naming convention to keep your Flow more organized and easier to follow.
Never hard-code Salesforce IDs. IDs are org-specific and won’t be the same across production and different Sandboxes. Instead, creatively use variables, merge fields, and the Get Records element to ensure the appropriate records are found in every environment.
At Bitwise Industries, we use a consultative approach to help you determine the best strategy to identify your challenges, implement appropriate solutions and enhance your systems. Want to fast track your Automations knowledge? Check out this quick, 4-minute read!
If you’re interested in uncovering the tech possibilities available to your organization, click this link to schedule some time with one of our experts.
If you’re interested in uncovering the tech possibilities available to your organization or want to find more ways to increase your ROI with technology, click this link to schedule some time with one of our experts.
Tech Services
Celebrating Bitwise Industries’ Growth and Accomplishments The year was 2013. Miley Cyrus was swinging around on that giant wrecking ball,...
Celebrating AAPI Ingenuity With May comes the first hints of summer: the first days of sweltering heat, graduations, and weddings....
The Future of Your Institution Depends on It While the world changes quickly around us, there are a few constants:...
Catch Some Rays AND Some Salesforce Know-How The heat waves have arrived, and so has the newest preview of Central...
Making Crypto Less Cryptic This week, we’re spotlighting a client with a barrier-breaking mission. Hedge Heroes is a start-up business...
Bitwise Industries Highlights One of Our Humans Take a peek behind the curtain to get a first-hand look at how...
Austin, TX or bust! Earlier this month, a few of our beloved Bitwise Industries employees ventured to Austin, Texas, congregating...
Bitwise Industries Will Show You 5 Ways to Get Started Bitwise Industries is a company known for creating solution-based products...
Let Your Networking Opportunities Bloom With the warmth and new life of spring comes the opportunity to grow your Salesforce...
What You Need To Know For the Salesforce aficionados out there who were just getting comfortable with the Winter ‘23...
Maximizing Your Salesforce ROI Doesn’t Have to be a Headache. It’s not uncommon for someone’s initial takeaway from their first...
The New Normal Times have been hard for businesses to stay relevant in the market and efficient in day-to-day operations....