You need to sign in to do that
Don't have an account?
Hiral 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();
}
}
trigger ContactEx2_0209 on Contact (before update)
{
for(contact con : Trigger.New)
{
con.description = 'Updated by --->' +userinfo.getUserName();
}
}
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.