No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Embed Flows in Visualforce Pages
- Find the flow's unique name:
- Go to the flow list page. From Setup, click .
- Click the name of the flow you want to embed.
- Define a new Visualforce page or open one that you want to edit.
- Add the <flow:interview> component, somewhere between the <apex:page> tags.
- Set the name attribute
to the unique name of the flow. For example:
1<apex:page> 2<flow:interview name="MyUniqueFlowName"/> 3</apex:page> - Restrict which users can run the flow by setting the page security
for the Visualforce page that contains it.
If the Visualforce page containing the flow is delivered externally to site or portal users, any of those users with access to the Visualforce page can run the embedded flow.
If the Visualforce page containing the flow is delivered to users within your organization through a custom Web tab, link, or button, users must have access to the page. They must also have the “Run Flows” permission or have the Force.com Flow User field enabled on their user detail page.
- Specify what happens when a user clicks Finish in a flow screen by setting the flow finish behavior.
Setting Variable Values in a Flow
1<apex:page>
2 <flow:interview name="ModemTroubleShooting">
3 <apex:param name="vaCaseNumber" value="01212212"/>
4 </flow:interview>
5</apex:page>1<apex:page standardController="Case" tabStyle="Case" >
2 <flow:interview name="ModemTroubleShooting">
3 <apex:param name="vaCaseNumber" value="{!Case.CaseNumber}"/>
4 </flow:interview>
5</apex:page>For more examples of setting variable values, see Set Flow Variable Values from a Visualforce Page. For information about getting variable values from a flow to display in a Visualforce page, see Get Flow Variable Values to a Visualforce Page.
Setting the finishLocation Attribute
1<apex:page standardController="Case" tabStyle="Case" >
2 <flow:interview name="ModemTroubleShooting" finishLocation="{!URLFOR('/home/home.jsp')}">
3 <apex:param name="vaCaseNumber" value="{!case.CaseNumber}"/>
4 </flow:interview>
5</apex:page>For more examples of setting finishLocation, see Configure the finishLocation Attribute in a Flow.