You need to sign in to do that
Don't have an account?
aaki
Getting SOQL 101 Error Can Any one Correct Me. I am run this code in developer console
What is the Wrong in this Code Block
list<contact> clst = new list<contact>(); for(contact con : [Select id, otherphone from contact]) { con.otherphone = '768906543333'; clst.add(con); } update clst;
Getting SOQL 101 Error Can Any one Correct Me. I am run this code in developer console
Code look's good.
Is this full code you are running?
Please remove everyting from Anonymous window and try executing again this code. You might be getting error due to other piece of code.
PLease mark as best answer if helped.
Regards,
Ramakant
Hope this helps!