FLOW_BypassValidation.DTO_Request
Class
apex
global inherited sharing class FLOW_BypassValidation.DTO_RequestRequest DTO for the Bypass Validation invocable action. Specifies which validation rules to bypass by type (object, group, or rule) and name.
Fields
| Field | Description |
|---|---|
| global String bypassType | The type of bypass to apply. |
| global String name | The 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 bypassTypeType: 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 nameType: 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.