-
-
Save miragedeb/af42ab4f8edd8a36bbed25a2ad7584c1 to your computer and use it in GitHub Desktop.
This file contains 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 class ExtensionName { | |
Public Flow.Interview.Add_Defenders_to_Quote myAutoFlow { get; set; } | |
Public ExtensionName(ApexPages.StandardController controller) {} | |
public String getmyID() { | |
if (myAutoFlow==null) | |
return ''; | |
else | |
//Put flow variable that represents the id of newly created record | |
return myAutoFlow.vObjID; | |
} | |
public PageReference getNextPage(){ | |
PageReference p = new PageReference('/' + getmyID() ); | |
p.setRedirect(true); | |
return p; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Thanks!