---
schema_version: "1"
id: 0c34cc8676b52a1843f7a976a9492e81de560ba3e6cc245c3a345bac0ca6a0aa
title: Bypass Specific Triggers or Validations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/bypass_triggers_validations.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.bypass_triggers_validations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2121af9509a6400dece824563039c718264fe5b5f7edb7a93bbdf291824442f0
description: Configure a policy to bypass only the specific triggers or validations that you select.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Bypass Specific Triggers or Validations

Configure a policy to bypass only the specific triggers or validations that you select.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions. Requires the Privacy Center license.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d16430e46">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d16430e46 ">To create, edit, and schedule privacy policies:</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d16430e46 ">Manage Privacy Center Policies</td>
          </tr>
        </tbody>
      </table>

Task overview:

To complete this setup, you add a custom permission to the trigger or validation rule that you want to bypass. Make sure that the trigger or rule is bypassed when the running user has the specified permission. You then grant the permission to the system user that runs the privacy policy.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-data_protection_and_privacy-264-0-0-production-enus/27d1bf87-a47b-491a-8339-f53ef6540aec/images/icon_note.png)

Note The Automated Process User runs privacy policies by default. When you assign a permission set to a policy, the Platform Integration User runs the policy instead. Only the Platform Integration User has the necessary bypass privileges.

## Step 1: Modify the Trigger or Validation Rule with a Custom Permission

Add a custom permission as a bypass condition to the triggers and validation rules that you want to bypass.

1. Create a [custom permission](https://help.salesforce.com/s/articleView?id=platform.custom_perms_create.htm&language=en_US).
2. Optional: To bypass a record-triggered flow, you can use a Decision element with the Running User’s Permission resource as a condition. For example, {!$Permission.custom\_permission\_name} Equals {!$GlobalConstant._True/False_}.
    
    Related topics:
    
    - [Flow Element: Decision](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_decision.htm&language=en_US)
    - [Define Conditions in a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build_logic_conditions.htm&language=en_US)
    - [Flow Resource: Global Variables](https://help.salesforce.com/s/articleView?id=platform.flow_ref_resources_global_variables.htm&language=en_US)
3. Optional: To bypass a validation rule, you can add the custom permission to the error condition formula as a NOT condition. As a result, the formula evaluates to true only when the user lacks the custom permission.
    
    Related topics:
    
    - [_Trailhead_: Bypass Your Validation Rules](https://trailhead.salesforce.com/content/learn/modules/validation-rules/bypass-your-validation-rules)
    - [Validation Rules](https://help.salesforce.com/s/articleView?id=platform.fields_about_field_validation.htm&language=en_US)
4. Optional: Add the custom permission to any Apex triggers that you want to bypass.

## Step 2: Assign the Custom Permission via a Permission Set

Turn on the custom permission that you created on a permission set, and assign the permission set to your privacy policies.

1. Add the custom permission to a new permission set. Make sure that the permission set is session-based by enabling the **Session Activation Required** setting.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-data_protection_and_privacy-264-0-0-production-enus/27d1bf87-a47b-491a-8339-f53ef6540aec/images/icon_note.png)
    
    Note The permission set must include only the custom permission that you created for bypassing triggers and validation rules. If other user permissions are present, errors can occur with your configuration.
    
    Related topics:
    
    - [Create Permission Sets](https://help.salesforce.com/s/articleView?id=platform.perm_sets_create.htm&language=en_US)
    - [Enable Custom Permissions in Permission Sets](https://help.salesforce.com/s/articleView?id=platform.perm_sets_custom_perms.htm&language=en_US)
2. From Setup, in the Quick Find Box, enter Privacy Policy, and then select **Privacy Policy Settings**.
3. Under Automation Settings, turn on **Designate a permission set for policy execution users**.
4. In the Select a Permission Set field, start typing the name of the permission set, and then select it.
5. Save your changes.
6. Go to the Privacy Center app and select a policy.
7. Click **Edit**.
8. Under Permission Set Assignment, turn on **Assign permission set to policy execution user: <permission set name>**.
9. Save your changes and republish your policy.