Salesforce Fact #381 | Id comparison in validation rule
It is a good practice to not use hardcoded Ids anywhere in Salesforce. But in case we have some use case where we need to use hardcoded Ids in validation rule, then we need to be careful.
If we are specifying the 18 char Id, then we need to use CASESAFEID function in order to make the comparison at the same level. However, it is not required if we are specifying 15 char Id.
Attached is the screenshot.
Comments
Post a Comment