When does finishlocation execute in a Visualforce flow?

When does finishlocation execute in a Visualforce flow?

Auth.SessionManagement.finishLoginFlow indicates the end of a Visualforce page login flow. If finishLocation is in the same flow, finishLocation executes when the flow starts, giving users full access to the session.

How to configure the finishlocation attribute in a flow?

You can shape what happens when a user clicks Finish on the final screen by using the URLFOR function, the $Page variable, or a controller. The following sections show the ways that you can configure the component’s finishLocation attribute. You can’t redirect flow users to a URL that’s external to your Salesforce org.

What happens when you click finish in Visualforce?

If finishLocation isn’t specified, users who click Finish start a new interview and see the first screen of the flow. You can shape what happens when a user clicks Finish on the final screen by using the URLFOR function, the $Page variable, or a controller.

Can You redirect users to external URL in Visualforce?

You can’t redirect flow users to a URL that’s external to your Salesforce org. Don’t call the Auth.SessionManagement.finishLoginFlow method and the finishLocation attribute in the same flow. Auth.SessionManagement.finishLoginFlow indicates the end of a Visualforce page login flow.

Can you customize a flow in Visualforce?

The standard user interface for running a flow can’t be customized by using Flow Builder. However, once you embed a flow in a Visualforce page, you can use Apex code and Visualforce markup to configure the flow at run time—such as to pass values between the Visualforce page and the flow or to customize the look and feel of the flow at run time.

What happens when finishlocation is in the same flow?

If finishLocation is in the same flow, finishLocation executes when the flow starts, giving users full access to the session. To route users to a relative URL or a specific record or detail page, using its ID, use the URLFOR function. This example routes users to the Salesforce home page.