public class InsertLead {
public void insertleadmethod(){
Lead ls= new Lead();
ls.lastname='sample lead';
ls.FirstName='first name';
ls.Company='sample company';
ls.Email='sample@gmail.com';
insert ls;
}
}
Run the below code from anonymous
InsertLead IL= new InsertLead();
IL.insertleadmethod();
If this information helps, please mark the answer as best. Thank you
public class InsertLead {
public void insertleadmethod(){
Lead ls= new Lead();
ls.lastname='sample lead';
ls.FirstName='first name';
ls.Company='sample company';
ls.Email='sample@gmail.com';
insert ls;
}
}
Run the below code from anonymous
InsertLead IL= new InsertLead();
IL.insertleadmethod();
If this information helps, please mark the answer as best. Thank you
You can try the below code snippet
Run the below code from anonymous
If this information helps, please mark the answer as best. Thank you
All Answers
You can try the below code snippet
Run the below code from anonymous
If this information helps, please mark the answer as best. Thank you
can u help this program
I see you posted this as another question that has been addressed https://developer.salesforce.com/forums/ForumsMain?id=9062I000000R5u0
Please consider marking the answer best to close the thread so it could help others too.
Thank you!