Achieve your business goals faster by unlocking our Salesforce Cloud Services.
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;
lc.setLeadId(l.id);
System.debug(‘ID of record inserted is: ’+l.id);
lc.convertedStatus=’closed-converted’;
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 Result
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.