Activity Forums Salesforce® Discussions How to embed a flow in Salesforce Visualforce Page?

  • Achintya

    Member
    August 22, 2019 at 4:44 am

    To customize a flow’s look and feel or enhance its functionality, embed it in a Visualforce page. If your org has flows enabled for sites and portals, use the Visualforce page to deliver the flow to your Salesforce site, portal, or community.

    To add a flow to a Visualforce page, embed it using the <flow: interview> component.

    1. Find the flow's API name. a) From Setup, enter Flows in the Quick Find box, then select Flows.
    b) Click the name of the flow that you want to embed.
    2. Define a new Visualforce page or open one that you want to edit.
    3. Add the <flow:interview> component, somewhere between the <apex:page> tags.
    4. Set the name attribute to the unique name of the flow.

    For example <apex:page>
    <flow:interview name="flowAPIName"/>
    </apex:page>

    5. Restrict which users can run the flow by setting the page security for the Visualforce page that contains it. To run the flow, external users (such as on a community) need access to the Visualforce page. To run the flow, internal users need access to the Visualforce page and either: a)The "Run Flows" permission.
    b)The Flow User field enabled on their user detail page.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos