I am trying to create a flow which creates an account record and then navigates to the newly created record detail page
VF Code
<apex:page Controller="AccFlowController" TabStyle="Account">
<br/>
<flow:interview name="CreateAccount" interview="{!myflow}" finishlocation="{!AID}" />
Apex Class code
public class AccFlowController{
public Flow.Interview.Quick_Account myFlow { get; set; }
public String getmyID() {
if (myFlow==null) return '';
else return myFlow.accountId;
}
public PageReference getOID(){
PageReference p = new PageReference('https://dev-dev ed.my.salesforce.com/'+getmyID());
p.setRedirect(true);
return p;
}
}
However, when I try to save the class it is showing
Error: Compile Error: Variable does not exist: accountId
My flow has the following variable present