-
-
Save Opopanax/11051749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <apex:page Controller="FlowRedirectController"> | |
| <flow:interview name="FLOW_NAME_HERE" interview="{!FlowName}" finishLocation="{!redirectTo}" > | |
| <!-- | |
| Any Params you need to pass into your flow. | |
| <apex:param name="CaseId" value="{!CaseId}"/> | |
| --> | |
| </flow:interview> | |
| </apex:page> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public with sharing class FlowRedirectController { | |
| public Flow.Interview.RedirectId redirectId{get;set;} | |
| public PageReference redirectTo(){ | |
| if(redirectId != null) { | |
| returnId = redirectId.vRedirectId; | |
| } | |
| PageReference send = new PageReference('/' + returnId); | |
| send.setRedirect(true); | |
| return send; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<apex:page Controller="FlowRedirectController">
<flow:interview name="FLOW_NAME_HERE" interview="{!FlowName}" finishLocation="{!redirectTo}" >
/flow:interview
/apex:page
public class FlowRedirectController{
public Flow.Interview.FLOW_NAME_HERE redirectId {get;set;}
}