You need to sign in to do that
Don't have an account?
MadeForIT
an error unexpected token '=' is showing. Please help me find the issue.
Lead VarL1=new Lead();
VarL1.FirstName='Christina';
VarL1.LastName='Yang';
VarL1.company='Meditech';
Lead varL2 = new Lead();
varL2 =[select id,company from Lead MobilePhone ='9779379992'];
VarL2.company='Max';
list<Lead>VarLeadList=new list<Lead>();
VarLeadList.add(VarL1);
VarLeadList.add(VarL2);
update VarLeadList;
VarL1.FirstName='Christina';
VarL1.LastName='Yang';
VarL1.company='Meditech';
Lead varL2 = new Lead();
varL2 =[select id,company from Lead MobilePhone ='9779379992'];
VarL2.company='Max';
list<Lead>VarLeadList=new list<Lead>();
VarLeadList.add(VarL1);
VarLeadList.add(VarL2);
update VarLeadList;
please try below code
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi