Enable User Access For Your Flow
- List declarative options for distributing screen flows and autolaunched flows.
- Compare the distribution options for a screen flow.
- Distribute a flow with a Lightning page
After you verify all the test cases, your flow is ready for prime time! Let’s make sure that the right users can find and run the flow.
Activate the Flow
Only flow admins (users with the Manage Flows permission) can run inactive flows.
- From the button bar in Flow Builder, click Activate.
Grant Permissions to Flow Users
Now any user can run this flow, as long as they have either:
- The Run Flows user permission
- The Flow User field enabled on their user detail page
- If Override default behavior and restrict access to enabled profiles or permission sets is selected for an individual flow, access to that flow is given to users by profile or permission set
Make sure that all the appropriate users have permission to run flows.
- Identify the users who will run the flow.
- Create a permission set that includes the Run Flows permission.
- Assign the permission set to the users you identified.
Distribute the Flow
Users can’t run anything if they don’t know where to find it. Put the flow somewhere useful so they can discover it.
Flows can be distributed to users in a myriad of ways, depending on the type of flow. Here are the declarative options for distributing screen flows and autolaunched flows.
For a list of all the distribution options for each flow type, check out the resources at the end of this unit.
As you can see, screen flows support many distribution methods, but we recommend using Lightning pages, flow actions, the utility bar, or Lightning community pages. To choose between those options, here are some guiding questions.
|If...||Use this option...|
|The flow should be available to external users||Lightning community page|
|The flow needs the context of a record||Lightning record page or flow action|
|The flow should be available from every page||Utility bar|
|The flow will be used every time someone accesses a page||Lightning page|
|The flow will be used occasionally||Flow action|
Based on the business requirements, the New Contact flow:
- Should be available to sales reps, who are internal users (so no Lightning community pages)
- Doesn’t require any context (so no flow actions or Lightning record pages)
If you’re not using Lightning community pages or flow actions, here are your remaining options.
- Make the flow available on every page in an app with the utility bar.
- Make the flow available on the Home page of an app.
- Make the flow available on a standalone App page.
When offered those three choices, your stakeholder chooses to put the flow on the Home page of the Lightning Sales app.
Add the Flow to the Home Page
- From Setup, enter builder in the Quick Find box, and then select Lightning App Builder.
Open the appropriate home page, or create a new one.
- Click New.
- Select Home Page, and click Next.
- Give the page a name, and click Next.
- Click Clone Salesforce Default Page, select Home Page Default, and click Finish.
Drag a Flow component to the top of the right column
- For Flow, select New Contact.
- Save your changes and activate the page. Make sure to mark this page as the default Home page.
To see your flow in action, go to your Home page.
- Click Back to return to Setup.
From the App Launcher, find and select Home.
Congratulations! Earlier in the Build Flows with Flow Builder trail, you created a flow made up of screens, logic, and actions, as well as variables and other flow resources. Now you’ve tested that everything is working properly, and made sure the flow is accessible to the right users. You’ve got the skills now to guide users through your company’s business processes. Go forth and automate!
For more practice with flows, check out the projects in the Automate Your Business Processes with Lightning Flow trail.