To customize your flow’s look and feel for internal users, add the flow to a Visualforce page. Then distribute that page through a Visualforce tab, custom button, or custom link.
Required Editions
| View supported editions. |
| User Permissions Needed | |
|---|---|
| To create, edit, and set version settings for Visualforce pages: | Customize Application |
-
Find the flow’s API name.
- From Setup, enter Flows in the Quick Find box, then select Flows.
- Click the name of the flow.
- Copy the API name of the flow.
- From Setup, enter Visualforce Pages in the Quick Find box, then select Visualforce Pages.
- Define a new Visualforce page, or open an existing one.
-
Add the
<flow:interview>component somewhere between the<apex:page>tags. -
Set the
nameattribute to the API name of the flow.For example:
<apex:page> <flow:interview name="flowAPIName"/> </apex:page>If the flow is from a managed package, thenameattribute must be in this format:namespace.flowuniquename. - Click Save.
-
Restrict which users can access the Visualforce page.
- Click Visualforce Pages.
- Click Security next to your Visualforce page.
- Move all the appropriate profiles from Available Profiles to Enabled Profiles by using the add and remove buttons.
- Click Save.
- Add the Visualforce page to your app by using a custom button, link, or Visualforce tab.
- Customize a Visualforce Component to Control the Flow's Finish Behavior
By default, users who click Finish start a new interview and see the first screen of the flow. After you embed a flow in a Visualforce page, configure thefinishLocationattribute to route users to another page in Salesforce.