Salesforce Fact #83 | Prior value in validation rule
PRIORVALUE() function also takes into consideration the value while creating a record. So we need to be careful while working with validation rule.
In this example, the validation rule checks whether the prior value of account rating is 'Hot'.
Attached are the screenshots.
To overcome this one can add, NOT(ISNEW()) along the PRIORVALUE() function, so that it doesn't fails.
ReplyDelete