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
Hiral Patel 25Hiral Patel 25 

trigger ContactEx2_0209 on Contact (before u pdate) { for(contact con : Trigger.New) { con.description = 'Updated by --->' +userinfo.getUserName(); } }

i got this error :Variable does not exist: description

trigger ContactEx2_0209 on Contact (before update) 
{
  for(contact con : Trigger.New)
  {
      con.description = 'Updated by --->' +userinfo.getUserName();
  }
}
ANUTEJANUTEJ (Salesforce Developers) 
Hi Hiral,

Can you check if the API name of the field is correct and I think the name is correct but just to be sure copy the API name from the setup and paste it in place of description.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Hiral Patel 25Hiral Patel 25
where i need to check?