How to bypass validation rule using custom setting

Topic: Bypass salesforce validation rule for given users using hierarchical custom setting.

Scenario: On opportunity we have validation which force to add amount greater then $500, lets see how to bypass this for specific or all users.

Solution: Create new hierarchical custom setting with check box field and use the field value to bypass you validation rule.

Note: If the default organization-level value of your checkbox field is set to true, the validation will be bypassed for all users..

Bypass validation using custom setting

See in action

Leave a Reply