Activity Forums Salesforce® Discussions Can we bypass validation Rules?

  • Manpreet

    Member
    April 27, 2018 at 11:30 am

    Hi saurabh,

    Validation rules can never be bypassed. If we have upload records and need to bypass validation, then deactivate validation rule and upload records. After upload, again activate validation rule.

    Thanks.

  • Aman

    Member
    May 1, 2018 at 8:15 am

    Hi Saurabh,

    Below are the steps for allowing certain users to bypass a Validation Rule :

    1. Create a Custom Permission.
    2. Create a Permission Set and mark the Custom Permission as active in that set.
    3.  Assign users to the Permission Set who should be able to bypass the Validation Rule.
    4. a line to the Validation Rule that references the Custom Permission

    the line is $Permission.PermissionName = FALSE

    salesforce-validation-rule

  • Naveen

    Member
    September 6, 2019 at 2:10 pm
  • vidyut

    Member
    June 9, 2020 at 3:55 pm

    Hi Saurabh,
    There is a checkbox named "Bypass Validations" on the user detail page.
    If you set it as checked then for the particular user the validation rules will be ignored. See if this information can help you design the solution for your requirement.

    Thanks.

  • Pooja

    Member
    June 10, 2020 at 5:18 am

    Yes you can bypass the validation rule.

  • Madhuri

    Member
    August 5, 2021 at 3:44 pm

    Hi Vidyut,
    How do I include the Check box and custom permission to bypass the validation rule?

    Thank you

    • This reply was modified 2 years, 8 months ago by  Madhuri Joshi.

Log In to reply.

Popular Salesforce Blogs