How to bypass validation rule using custom setting Post author:Swapnil Jaiswal Post published:April 19, 2025 Post category:Blog / Salesforce Post comments:0 Comments 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.. See in action This question was recently asked during a Salesforce Developer interview at PwC India. Salesforce developer interview questions Salesforce 35+ company wise interview questions. You Might Also Like Create ToDo app in LWC ! From Scratch March 24, 2022 Trigger: When Account Email get updated all related Contact Email Should get updated January 4, 2025 Fetch all Custom Objects in APEX August 15, 2022 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.