+ Start a Discussion
Dippan PatelDippan Patel 

Open Standard Lightning Convert Lead popup

Hi All, 

I have a visualforce page with Lightning UI. There is a "Convert Lead" link in this page. 

When clicked on this link, it is supposed to open native salesforce convert functionality. (Code below)
 
url = '/lead/leadconvert.jsp?id=' + recordId 

 if( (typeof sforce.one != 'undefined') && (sforce.one != null) ){
                if(recordId != null && recordId != ''){
                    sforce.one.navigateToURL(url);
                }
} 

else if(sforce.console.isInConsole()){
                sforce.console.openPrimaryTab(null, url, true);
}

 else {
      window.open(url);
  }



In Lightning Mode, it opens a classic visualforce page. How do I open Lightning Convert Popup (Standard)? 
SwethaSwetha (Salesforce Developers) 
HI Dippan,
Have you ensured the VF has the checkbox "Available for Lightning Experience, Lightning Communities, and the mobile app" enabled?

Similar ask: https://trailblazers.salesforce.com/answers?id=9063A000000e3YcQAI
If this information helps, please mark the answer as best. Thank you