By default, when a flow interview that uses screens finishes, a new interview for that flow begins and the user is redirected to the first screen. If you want users to be redirected to another page within Salesforce when they click Finish, use the retURL parameter in the flow URL.
|Available in: both Salesforce Classic and Lightning Experience|
|Available in: Enterprise, Performance, Unlimited, and Developer Editions|
To redirect users to a specific page in Salesforce after they click Finish
is a relative URL (the part of the URL that comes after https://yourInstance.salesforce.com/
- You can't redirect flow users to a URL that’s external to your Salesforce organization.
- You can’t use a flow variable as the value for the retURL parameter. If you want to use a flow variable to redirect a user, such as to a specific record, distribute the flow by using Visualforce.
- retURL can cause nested top and side navigation bars to render on the destination page.
The following flow URL redirects the user to the home tab for cases (https://yourInstance.salesforce.com/500/o
The following flow URL sets the varUserFirst and varUserLast variables (both of type Text) to the running user’s FirstName
field values. When the flow interview finishes, the user is redirected to https://yourInstance.salesforce.com/home/home.jsp