Newer Version Available

This content describes an older version of this product. View Latest

ValidationRule

Represents a formula that is used for specifying when a criteria is met. This includes both validation rules and workflow rules. Includes access to the associated ValidationRule object in Salesforce Metadata API.

Available from API version 30.0 or later.

Supported SOAP Calls

create()query()retrieve()update()upsert()

Supported REST HTTP Methods

Query, GET, POST, PATCH

Fields

Field Name Details
FullName
Type
string
Properties
Group, Nillable.
Description
The Metadata API full name.
Id
Type
id
Properties
Filter, Group, Sort.
Description
The ID of a specific validation rule.
LastModifiedDate
Type
datetime
Properties
Filter, Sort.
Description
Last modified date.
Metadata
Type
ValidationRuleMetadata
Properties
Create, Nillable, Update.
Description
Validation rule metadata.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort.
Description
The namespace prefix.
TableEnumOrId
Type
picklist
Properties
Create, Filter, Group, Sort
Description
The enum (for example, Account) or ID of the object this field is on.
ValidationName
Type
string
Properties
Create, Filter, Group, Sort, Update.
Description
The enum name or ID of entity this rule is associated with.