Are you a smart person who loves to communicate with people? If yes, then join us as a Business Development Executive.

Public static void main()


Lead l = [SELECT name FROM lead WHERE name like ’sh%’ LIMIT 1];

Lead l1 = new Lead(lastName=‘’,companyName=’’);

Insert l1;

Database.leadConvert lc = new Database.leadConvert;


System.debug(‘ID of record inserted is: ’;


lc.ownerId=’a027F000001XWU7’; // any user id

Database.leadConvertResult lcr = Database.convertLead(lc);


Our Recent Blog

Share This Post