I have a custom button url to open a Lead conversion page:


It still displays in lightning but open the convert page in classic! I have tried:

{! URLFOR( $Action.Lead.Convert, Lead.Id) }

Same behaviour, use a page in classic.

{! URLFOR( "/apex/leadconvert", null, [id=Lead.Id] ) }

I got an error message: "Page leadconvert does not exist".

{! URLFOR( "/lead/leadconvert", null, [id=Lead.Id] ) }

I got an error message: "URL no longer exists".

Any idea how to write it to open the page in Lightning. I need this URL to create a Lightning action to do some validation before opening the standard Lightning Component. Thank you in advance for your help. Sylvie


In Lightning, the standard lead conversion process is in a modal and it is not accessible by URL. Unfortunately your only solution is to write a custom lead conversion process to override the standard process.

  • 1
    Thank you. Any link/code you can provide to start with?
    – ultima67
    Oct 18 '19 at 1:50

you can use lightning navigation component to navigate to standard lead conversion page but in lightning lead conversion page the cancel button is not gonna work in my opinion I would recommnd you to use the classic URL for lead conversion page or you can use apex for lead conversion for the lightning lead conversion page you should go through this link How to redirect to standard lead convert page in lightning

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.