Skip to main content

Posts

Showing posts from December, 2016

Quick Tips: Some things about Salesforce Validation rules you may not know

What are validation rules?While creating any application, one of the most crucial building block is clean and good data. We do get ability to define required fields on field and page layout level, but there can be complex scenarios where the business rule needs multiple fields to ascertain data quality. 

Salesforce provides a very helpful feature called "Validation rule" to ensure administrators/ developers can create custom validation rules on Salesforce objects. These validation rules help ensure that any record being created or updated qualifies to defined business rules. If not, then developers/ administrators can display required error message.

Validation rule constitutes of:-
Formula - formula to evaluate business rule. If formula evaluates to TRUE, validation error is thrown, else it's considered as validation successError message - error message to be displayed on validation failureLocation - Enables admin/ developer to define location to display validation error. I…