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
Jerome ScolaJerome Scola 

How to convert an existing Lead Object to a Contact in code?


Some days ago,I didn't know a people's detail informations. So I create a lead object for him with email.

Now,I get his detail,I want to convert the lead to a contact with the detail.

So, How to realize that function in code ?

Thanks

 
ShashankShashank (Salesforce Developers) 
These should help:
http://nanostuffs.com/Blog/?p=1055
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_convertLead.htm