Public static void main()
Lead l = [SELECT name FROM lead WHERE name like ’sh%’ LIMIT 1];
Lead l1 = new Lead(lastName=‘’,companyName=’’);
Database.leadConvert lc = new Database.leadConvert;
System.debug(‘ID of record inserted is: ’+l.id);
lc.ownerId=’a027F000001XWU7’; // any user id
Database.leadConvertResult lcr = Database.convertLead(lc);
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.