Skip to content

Class: code

Record triggers execute custom code when a record Event occurs.

AttributeMetadataDescription
labelType: String
Max length: 60
UI-friendly string in the Vault's base language.
activeType: BooleanIndicates whether the component is active.
checksumType: String
Max length: 1500
Used to check data for errors.
event_segmentType: Enum
Allowed values:
  • PRE_CUSTOM
  • POST_CUSTOM
  • UNSPECIFIED
For internal Veeva use only. This Enum is used for a variety of features in Vault. Contains valid values for specifying eventSegment.
eventsType: Enum
Multi-value
Allowed values:
  • BEFORE_INSERT
  • AFTER_INSERT
  • BEFORE_UPDATE
  • AFTER_UPDATE
  • BEFORE_DELETE
  • AFTER_DELETE
The Events specifying when this record trigger executes. For example, BEFORE_UPDATE means the trigger executes right before the record updates.
objectType: Component
Required
The object this record trigger is associated to, for example,product__v.
orderType: Enum
Allowed values:
  • NUMBER_1
  • NUMBER_2
  • NUMBER_3
  • NUMBER_4
  • NUMBER_5
  • NUMBER_6
  • NUMBER_7
  • NUMBER_8
  • NUMBER_9
  • NUMBER_10
  • UNSPECIFIED
If multiple triggers exist on the same object, this specifies the order this record role trigger will execute. Order 1 executes first and Order 10 executes last. UNSPECIFIED means this trigger will always execute last.
source_codeType: SdkCode
Max length: 1048576
The source of this record trigger and code used to create and edit metadata. Custom means this record trigger was developed with the Vault Java SDK.
OperationSupport
Create
Recreate
Alter
Drop
Rename
Describe
Generate Recreate
Queryable