Skip to content

FLOW_BypassValidation.DTO_Request ​

Class

apex
global inherited sharing class FLOW_BypassValidation.DTO_Request

Request DTO for the Bypass Validation invocable action. Specifies which validation rules to bypass by type (object, group, or rule) and name.


Fields ​

FieldDescription
global String bypassTypeThe type of bypass to apply.
global String nameThe name of the object, group, or rule to bypass.

bypassType ​

apex
@InvocableVariable(description='Pick Object to bypass all validation rules on an object, Rule Group to bypass one rule group, or Rule to bypass a single rule. Stored values are OBJECT_NAME, GROUP_NAME, and RULE_NAME; the field shows the stored value.' label='Bypass Type' placeholderText='OBJECT_NAME' defaultValue='OBJECT_NAME') global String bypassType

Type: String

The type of bypass to apply. Determines how the Name field is interpreted. Valid values are:

OBJECT_NAME: Bypasses all validation rules for the specified SObject type
GROUP_NAME: Bypasses all validation rules in the specified ValidationRuleGroup__mdt
RULE_NAME: Bypasses a specific ValidationRule__mdt by its DeveloperName

Defaults to OBJECT_NAME if not specified.

To clear bypasses, use the FLOW_ClearValidationBypass action instead.

name ​

apex
@InvocableVariable(required=true description='Object API name, group DeveloperName, or rule DeveloperName to bypass.' label='Name' placeholderText='Account') global String name

Type: String

The name of the object, group, or rule to bypass. Interpretation depends on bypassType:

For OBJECT_NAME: The SObject API name (e.g., 'Account', 'MyCustomObject__c')
For GROUP_NAME: The ValidationRuleGroup__mdt DeveloperName
For RULE_NAME: The ValidationRule__mdt DeveloperName

Required for all bypass types.