function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
etechcareersetechcareers 

How to convertLead in testclass???

Hi does anyone have an example of converting a lead in a testmethod???

 

Lead l = new Lead(
    FirstName = 'TestShan',
    LastName = 'RazzTest',
    Email = 'haha@gmail.com');
insert l;

 

How would I convert it in code???