I created a validation rule to test the insert field. The Profile Id and Name is correct. Supposedly, only system admin can edit the record. However, even if I am logged in as a System Administrator, I am still getting an error message. Why is that?
This code is not working even if the Id is correct..
$Profile.Id <> 'insert system admin id'
But this code works...
$Profile.Name <> 'System Administrator'