RevOps Docs for Startups
  • Welcome
  • Getting Started
    • Quickstart
    • About LeanScale
  • Growth Modeling
    • Building a Growth Model
      • Growth Model Assumptions
      • Growth Model Approaches
      • Growth Model Segmentations
    • Sales Capacity Plan
    • Marketing Plan
    • Customer Success Plan
  • Go-to-market Lifecycle
    • Go-to-Market Lifecycle
    • Lead Lifecycle
    • Sales Lifecycle
    • Customer Lifecycle
    • Proof of Concept Lifecycle
    • Lifecycle Measurement
  • Lead Attribution
    • Attribution Overview
    • Lead Source Taxonomy
  • Measuring Metrics
    • Reporting and Data Analytics
    • Sales Metrics
      • Created Pipeline
      • Weighted Pipeline
    • Marketing Metrics
      • Lead Impact Matrix
      • CAC to LTV
    • Customer Success Metrics
      • Net Retention
    • Partnership Metrics
    • Presenting Metrics
  • GTM Tech Stack
    • GTM Tech Stack Overview
    • When To Buy New Systems
    • Driving System Adoption
    • CRM Considerations
      • User-Oriented CRM
      • Data & Reporting CRM
      • Security-Focused CRM
  • Aligning Sales/Marketing
    • Alignment Overview
    • How to Align?
    • What is an SQL?
    • Building Marketing Operations
    • Defining GTM Process
    • Interviewing GTM Leaders
    • Finding The Right Talent
  • System Demos
    • Data Enrichment
      • Clay
      • Traction Complete
    • Conversational Intelligence
      • Gong
      • Unthread
    • CPQ
      • Dealhub
      • Salesbricks
    • Data Analytics
      • RevVue
      • QFlow
  • CRM Tips
    • Salesforce
      • Create Opp from Contact
      • Validation Rules in Flow
      • Roll Up Summary Field
      • Close Date Change Counter
      • Lead Stages
      • Sales Stages
      • Customer Stages
      • Next Step Fields
      • Lead Source Taxonomy
      • Proof of Concept Stages
      • Displaying Record Information
      • Display Dynamic Lists
      • Messages to End Users
      • Create Custom Buttons
      • Tips for Data Loader
      • Salesforce Inspector Reloaded
      • SFDC Navigator for Lightning
      • Bypass Validation Rules
      • Sales Manager Notes Field
      • Renaming Fields and Objects
      • Getting Faster to Record ID
    • Hubspot
      • Disable Picklist Options
      • Create Yesterday's Date
      • Create Today's Date
  • Strategic Walkthroughs
    • Revenue Operations Flywheel
    • Post-Fundraise Playbook
    • Building Board Decks
    • Building Dashboards
      • CEO Dashboards
      • Executive Dashboards
      • Marketing Dashboards
      • Sales Dashboards
      • CS Dashboards
      • Funnel Analytics
    • ChatGPT as a Salesforce Admin
    • Sales Commission Plans
    • Building Sales Territories
Powered by GitBook
On this page

Was this helpful?

  1. CRM Tips
  2. Salesforce

Bypass Validation Rules

PreviousSFDC Navigator for LightningNextSales Manager Notes Field

Last updated 7 months ago

Was this helpful?

Bypass Validation Rules with Permission Sets

Overview

This document explains how to use a permission set to bypass any validation rule that you have in place in Salesforce. This can be useful in cases where you need to allow certain users to update a record without having to meet the validation criteria.

Prerequisites

  • You must have the "Manage Permission Sets" permission.

  • You must have the "Edit" permission on the object that you want to bypass the validation rule for.

Steps

  1. Create a new permission set.

  2. Add the "Bypass Validation Rules" custom permission to the permission set.

  3. Assign the permission set to the users who need to bypass the validation rule.

  4. Edit the validation rule and add the following formula to the "Error Condition Formula" field:

NOT(ISPICKVAL(PermissionSetGroup.BypassValidationRulesV2, TRUE))

This formula will evaluate to true if the user does not have the "Bypass Validation Rules" permission set assigned to them. In this case, the validation rule will be triggered and the user will not be able to save the record.

Example

In the example below, we will create a permission set that allows users to bypass the validation rule on the Opportunity object that prevents users from saving an opportunity without an implementation fee.

  1. Create a new permission set.

  • Click on the Setup gear in the top right corner of the Salesforce home page.

  • Select Users > Permission Sets.

  • Click on the New button.

  • Enter a name for the permission set, such as "Bypass Validation Rules V2".

  • Click on the Save button.

  1. Add the "Bypass Validation Rules" custom permission to the permission set.

  • Click on the Custom Permissions tab.

  • Select the "Bypass Validation Rules V2" permission.

  • Click on the Add button.

  • Click on the Save button.

  1. Assign the permission set to the users who need to bypass the validation rule.

  • Click on the Users tab.

  • Select the users who need to bypass the validation rule.

  • Click on the Assign Permission Set button.

  • Select the "Bypass Validation Rules V2" permission set.

  • Click on the Assign button.

  1. Edit the validation rule and add the following formula to the "Error Condition Formula" field:

NOT(ISPICKVAL(PermissionSetGroup.BypassValidationRulesV2, TRUE))
  • Click on the Setup gear in the top right corner of the Salesforce home page.

  • Select Objects > Opportunity.

  • Click on the Fields & Relationships tab.

  • Select the "Implementation Fee" field.

  • Click on the Validation Rules tab.

  • Click on the New button.

  • Enter a name for the validation rule, such as "Implementation Fee Required".

  • Select the "Error Condition Formula" field.

  • Enter the following formula:

NOT(ISPICKVAL(PermissionSetGroup.BypassValidationRulesV2, TRUE))
  • Click on the Save button.

Testing

To test the validation rule, create a new opportunity and try to save it without entering an implementation fee. You should see an error message that prevents you from saving the opportunity.

Now, assign the "Bypass Validation Rules V2" permission set to the user who is trying to save the opportunity. Try to save the opportunity again. This time, you should be able to save the opportunity without entering an implementation fee.

Conclusion

By using a permission set, you can easily bypass any validation rule that you have in place in Salesforce. This can be useful in cases where you need to allow certain users to update a record without having to meet the validation criteria.