Redirect Flows That Render in Lightning Runtime
The URL parameter retURL lets you control what
happens when a flow interview finishes. Lightning runtime now respects the URL parameter
retURL. Previously, only the Classic runtime respected the
parameter.
This change applies to both Lightning Experience and
Salesforce Classic.
Example
You create a custom button called “Survey Customers” with this
URL.
/flow/Survey_Customers?retURL=home/home.jsp
When a user clicks Survey Customers, the flow runs. When the user clicks Finish, Salesforce redirects the user to the home page.
