You need to sign in to do that
Don't have an account?
CloudGeek
Nee help for lead conversion code from JavaScript
Hi,
I would like to implement lead convert functionality from javascript, which will be invoked by a button click on a VF Page.
How do we implement this in javaScript to convert lead and get all the lead converted details (AccountId,ContactId,OpptyID) ?
I would like to implement lead convert functionality from javascript, which will be invoked by a button click on a VF Page.
How do we implement this in javaScript to convert lead and get all the lead converted details (AccountId,ContactId,OpptyID) ?
Here is the link of blogpost which will be helpful for you. You just need few modification as per your need.
http://blogatsalesforce.blogspot.in/2015/04/convert-lead-using-custom-button.html
All Answers
You can redirect user to salesforce native lead conversion page.
On button click call a function.
function convertLead(){
location.href = '/lead/leadconvert.jsp?retURL=%2F{!Lead.Id}&id={!Lead.Id}';
}
Regards,
Naval
What if we do not have to redirect User but rather we need to convert as part of process and up on success need to redirect him to the account that is created by convert.
Here is the link of blogpost which will be helpful for you. You just need few modification as per your need.
http://blogatsalesforce.blogspot.in/2015/04/convert-lead-using-custom-button.html