Skip to main content
apex class code

public class DMLhelper { public static void createBulkprospects() { List<Lead>lstleads=new List<Lead>(); for(integer counter=1;counter<=100;counter++) { Lead ld = new Lead(); ld.firstname='Bulk'; ld.LastName='Lead record'+counter; ld.Company='salesforce INC'; ld.Status='Warm'; ld.Industry='Technology'; ld.phone='9900998877'; ld.fax='9900778899'; ld.Email='bulked'+counter+'@gmail.com'; ld.LeadSource='Web'; lstleads.add(ld); } if(!lstleads.isempty()) Insert lstleads; system.debug('number of DML statements used..:'+Limits.getDmlStatements()); } }

execution coe:

Dmlhelper.createbulkprospects();

error:

 Line: 1, Column: 11 Method does not exist or incorrect signature: void createBulkprospects() from the type DMLhelper
5 respuestas
0/9000