Alex Colburn – July 19, 2021
So many wonderful, and long-desired changes came to Flows in the Summer ‘21. No pilots, no betas - all of these features are live in your Salesforce org!
Salesforce took technical admins looking to build clean workflows into account with these new changes. They've made clicks an appealing alternative to a more intense programming approach for simple business processes.
In this update, we're most excited about multicolumn support, setting default values for choice components, and managing complex sorting. Let’s dive into these features and how you can get started using them right away.
Updates to multicolumn support for flows means you can divide flow screens into sections without touching a line of code. This means you no longer have to choose between one vs two-column layouts on flow screens. Now it’s possible to take advantage of what LWCs have had to offer with conditionally visible, and mobile-friendly page structuring.
To start using this new feature right away, go into Flow Builder and use the Section component. From there, move screen components into up to four columns.
As you begin editing the screen in Flow Builder, you can drag the Section components onto the screen canvas. In the Section component’s attributes, add columns and set the width. These updates are a huge step forward for building clean-looking forms on both desktop and mobile.
In the past, you may have had to create workarounds to address this behavior. The inability to default a value in a picklist or radio button was a deal-breaker for many. Salesforce has reduced unnecessary clutter on the flow UI and created intuitive workflows that can handle automation needs more prescriptively.
Now you canset a default value using any flow resource:
This update will be useful if you want to make it simple for users to make updates to opportunity details. After the user sets the opportunity stage, you’ll set the Stage’s picklist to the record’s preselected opportunity.
Helpful tips to keep in mind with this new update:
With a new custom flow element, you can now manage complex, multi-level sorting with clicks. This is gerat because before the update If you choose to do this in a flow, it implied having to invoke a custom Apex action or (if you were brave) create loops in your flows.
Now you can use the Collection Sort element to prioritize and limit the collected data or remaining items in the collection variable after sorting. This new feature will come in handy if you want to reduce a record collection variable to only a specific number of accounts. Before this update, it wasn’t possible to reorder the values and it was difficult to separate a collections variable from highest to lowest without hitting flow limits when looping a large collection.
Drag a Collection Sort element onto the canvas. If you’re on auto-layout, click the plus sign and select Collection Sort.
Next, select a collection variable, enter the field to sort the collection by Sort By, click Add Sort Option to add up to two additional sorting fields.
A few things to keep in mind when sorting collections are that:
There were a ton of updates to the flows feature suite in Summer ‘21 and what’s even better is that all of these updates to flows are live in your Salesforce org! Salesforce really delivered on their intent to make flows better for technical admins and developers looking to build clean workflows for users, partners, and clients.
During the countdown to the Salesforce Summer Release, Salesforce Developer, Andrew Davis, shared his thoughts on five of the functionality updates he was most excited to see roll out. You can check out all of his videos about the Salesforce Summer Release on How We Think.
So far, we’ve done a deep dive on how to set up inline editing for reports, Record Sharing Hierarchy functionality, and now Flows! Next, we’ll cover Lightning Web Component Quick actions.
If you can’t wait to read about it, you can watch it here.