Get Started with Flow Distribution
Learning Objectives
- Describe what you should do before you distribute a flow.
- List the various ways you can distribute a flow.
- Build a simple screen flow.
You've toiled for days, maybe even weeks, and finally have a flow worth writing home about. Maybe it keeps users true to the official business process. Maybe it saves users from doing repetitive tasks. Maybe it automates something else entirely. One thing is certain: it saves your users time and your organization money. But at this point it's just a thing in Salesforce Setup that users don't have access to.
After you finish building and testing your flow, you have yet another decision to make: how to make the flow accessible to your users.
How Do You Distribute Your Flow? Let Us Count the Ways
You can distribute flows in a number of ways, each of which comes with its own set of caveats and considerations to keep straight. For example, you can put a flow on a Lightning page, and you can put one in a utility bar. Some distribution methods are available only in Lightning Experience, others are ideal for Salesforce Classic. Here's a list of places where you can put a flow with a screen so users can get to it.
- Lightning pages
- Flow actions
- Utility bar
- Experience Builder page
- Custom Lightning components
- Visualforce pages
- Web tabs
- Custom buttons and links
And that's just for flows that have screens. The list grows quite a bit for autolaunched flows, bots, Apex actions, and the API.
In this module, we go through four major use cases for distributing your screen flows in Lightning Experience, and which method is recommended for each of them.
Build a Simple Flow
This module isn't about creating flows, but it's hard to show you the world of Flow Distribution without something to distribute. So let's create a flow that we can use in the other units of this module. It's purposefully very simple, with one screen element and one field on that screen. Trust us, these distribution methods work for simple and complex flows alike, so you can use them for your real flows, too.
- Create a flow.
- From Setup, enter Flows in the Quick Find box, then select Flows.
- Click New Flow to open the Flow Builder canvas.
- Select Screen Flow, click Create.
- Add a Screen element to your flow.
- On the canvas, hover over and click .
- Click Screen.
- For Label, enter My Screen.
- Under Configure Footer, select Hide Previous and Hide Pause.
- For Next or Finish Button, select Use the standard label.
- Add a Display Text field to your screen.
- From the Components tab under Display, click Display Text.
- In the Display Text properties pane, in the API Name field, enter
Hello_World
. - In the textbox, enter
Hello, World
. - Click Done to save the screen.
- Save the flow. Name it
Hello World
. Make sure its API name isHello_World
. - From the button bar in Flow Builder, click Activate. The flow is now active.
Make Sure Users Can Run the Flow
Before we get into the specifics of the different ways you can distribute your flow, make sure that your users can actually run it. By default, some distribution methods depend on the Run Flows permission. Add the Run Flows permission to a user profile or permission set for your org, and assign that permission set to the right users. To view the permissions assigned to a flow, click the next to a flow on the Flows page in Setup, then click Edit Access. If Override default behavior and restrict access to enabled profiles or permission sets is selected for the flow, add the flow to a permissions set or profile, and assign it to the right users. For details about creating and assigning permission sets, see Permission Sets in Salesforce Help.