Instantly share code, notes, and snippets.

@miragedeb miragedeb/Flow Extension Secret
Created Apr 9, 2016

What would you like to do?
public class ExtensionName {
Public Flow.Interview.Add_Defenders_to_Quote myAutoFlow { get; set; }
Public ExtensionName(ApexPages.StandardController controller) {}
public String getmyID() {
if (myAutoFlow==null)
return '';
//Put flow variable that represents the id of newly created record
return myAutoFlow.vObjID;
public PageReference getNextPage(){
PageReference p = new PageReference('/' + getmyID() );
return p;

This comment has been minimized.

Copy link

jbhenley86 commented Jun 20, 2017

I'm having trouble create a test class for this extension, so I can't deploy the extension to production.
Do you have a simple test class for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment