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
bhanu challengebhanu challenge 

plz correct the code......here am updating the name in contact using soql.. getting error..

this is th error


list<contact>con = [select Id,Name form contact where name = 'sfdc informatic new'];
for(contact ct : con){
ct.Name = 'sfdc new informatic';
}
update con;
 
Best Answer chosen by bhanu challenge
Ajay K DubediAjay K Dubedi
Hi Bhanu,
list<contact>con = [select Id,Name form contact where name = 'sfdc informatic new'];
for(contact ct : con){
ct.LastName = 'sfdc new informatic';
}
update con;
Regards,
Ajay