For example both ( A + B ) / C and A + ( B / C ) are Syntactically correct, but they will return completely different (and potentially bad) results.
Validation Rules are boolean, and so are Checkbox fields. So if you ever want to test the Logic of a Validation Rule Formula, just create a hidden Formula Field that returns a Checkbox result and then put your Validation Rule Formula in it.
Then create a Report or a List View that displays all of the fields that your Validation Rule is evaluating, and your Formula(Checkbox) field side-by-side to check for loopholes.
*** Caveat Alert ***
Not all Functions, like ISCHANGED and PRIORVALUE are supported in Formula Fields
11 risposte
PS. I've added the Validation Rule Test custom Formula(Checkbox) field on most Standard Salesforce objects in the Autumn'19 release of my Custom Formula Field Mix-Tape unmanaged package
The package is free, but if you really like it and are feeling generous, there's a link to my PayPal in the package (no obligation)
Install URL = sforce.co/36wqroz
Password = UoweB33R