- April 30, 2016 at 6:01 pm #11506Ravi #181
How to create a opportunity converted from lead in test class?
How to create a opportunity converted from lead in test class?May 26, 2016 at 6:29 am #12282Surbhi #184
Please find below the code for creating lead and converting it to account, contact and opportunity in test class.
Lead lead = new Lead();
Database.LeadConvert lc = new database.LeadConvert();
Database.LeadConvertResult lcr = Database.convertLead(lc);
Please Register to reply to this topic. /