Launch screen flows in Lightning Experience and Lightning console apps with a new standardized URL format. Opening flows in Lightning has several benefits, such as faster performance, keeping your users in Lightning console apps, and providing a more consistent browser experience. You can also pass information into your flow through its URL. The new URL format also supports the Salesforce Cosmos theme, and flow local actions.
Where: This change applies to Lightning Experience in Essentials, Professional, Enterprise, Unlimited, and Developer editions.
How: To open a flow in Lightning Experience, append
/lightning/flow/YourFlowNameHere to your URL. To run a specific flow version,
append /lightning/flow/YourFlowNameHere/versionId to your URL. Flows that open
in Lightning Experience have improved performance because most required Lightning components are
already loaded into the browser session. In Lightning console apps, your tabs are preserved when
a flow opens, and you can switch to other tabs while the flow is working. Using the new URL
format also ensures that your browser behaves consistently, with forward, back, and your browser
history working as expected.
To pass data into a flow through its URL, append ?flow__variableIdHere=value to the end of your
URL. For example, to pass a case number into a flow,
/lightning/flow/YourFlowNameHere?flow__variableIdHereID={!Case.CaseNumber}.
Use & to append multiple variables into a flow. For example, /lightning/flow/YourFlowNameHere?flow__varUserFirst={!$User.FirstName}&flow__varUserLast={!$User.LastName} passes both the user first name and last name into the flow.