Validation rules

Validation is important to keep the records clean and avoid users from entering junk data. Salesforce provides the ability to validate data of each record that can be written in a formula to prevent users from entering wrong or unwanted data. Validation uses the formula we discussed to check for the error scenario. The error can be thrown at the global level (page level) and the field level.

The navigation path for the validation rule for a standard object is Setup | Customize | [Object Name] | Validation Rules. Alternatively, for newer orgs, we can also it find through Build | Accounts | Validation Rules. The navigation path for the validation rule for a custom object is Setup | Objects | Validation Rules.

Let's draft a validation ...

Get Salesforce Essentials for Administrators now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.