You need to sign in to do that
Don't have an account?
Sunil Kumar 545
hi,lead conversion using apex class
passing parameter method (first name,lastname,eamil)
check query with lead .eamil is there or not,
if lead exit means it converted to (con/acc),
if does not exit means(contact or account)
using apex class..
check query with lead .eamil is there or not,
if lead exit means it converted to (con/acc),
if does not exit means(contact or account)
using apex class..
Below is the sample code you can use.
Refer below links for more information.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dml_convertLead.htm
https://automationchampion.com/tag/auto-convert-lead-using-apex/
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya
if it does not exist means it sholud be contact using apex class ...send code in only apex class..