You are here:
Bypass Specific Triggers or Validations
Configure a policy to bypass only the specific triggers or validations that you select.
Required Editions
| Available in: Developer, Enterprise, Performance, and Unlimited Editions. Requires the Privacy Center license. |
| User Permissions Needed | |
|---|---|
| To create, edit, and schedule privacy policies: | Manage Privacy Center Policies |
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.
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.
- Create a custom permission.
- 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}.
- 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:
- Optional: Add the custom permission to any Apex triggers that you want to bypass.
Step 2: Assign the Custom Permission Via a Permission Set
Enable the custom permission that you created on a permission set, and assign the permission set to your privacy policies.
- 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.
- From Setup, in the Quick Find Box, enter Privacy Policy, and then select Privacy Policy Settings.
- Under Automation Settings, enable Designate a permission set for privacy policy execution users.
- In the Select a Permission Set field, start typing the name of the permission set, and then select it.
- Save your changes.
- Go to the Privacy Center app and select a policy.
- Click Edit.
- Under Permission Set Assignment, enable Assign permission set to policy execution user: <permission set name>.
- Save your changes and republish your policy.
Did this article solve your issue?
Let us know so we can improve!

