Hardcoded User Id in Validation Rule not working #inSalesforce
Suppose the validation rule is
AND(ISCHANGED(AccountNumber),$User.Id <> '0054y000006Kb6FAAS')
First of all, you cant use 18 digit id here. Its invalid.
So, make it
AND(ISCHANGED(AccountNumber),$User.Id <> '0054y000006Kb6F')
Hardcoding not good.
So, make it
AND(ISCHANGED(AccountNumber),$User.Alias <> 'ali')
DONT HARDCODE, instead USE ALIAS
Comments
Post a Comment