function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eswari_12Eswari_12 

vf page for redirect the updated record

Hi

I'm trying to open my update record in new tab from my vf page. So here is my code. Im taking record id from autolaunch flow, and passing in the vf page. while run my flow it doesn't calling my Vf page or controller. Please can anyone help me.

Page:
<apex:page Controller="leadflow" TabStyle="lead">
<flow:interview name="autolaunch_flow" interview="{!myflow}" finishlocation="{!LID}" />
</apex:page>

Controller:
public class leadflow{
public Flow.Interview.autolaunch_flow myFlow { get; set; }
public String getmyID() {
if (myFlow==null) return '';
else 
return myFlow.leadId;
}

public PageReference getLID(){
PageReference p = new PageReference(getmyID());
p.setRedirect(true);
return p;
}

}