Skip to content

Documenttypetrigger

Class: code

Doctype triggers execute Vault Java SDK code when a document or document version is created, updated, or deleted.

Learn more about Doctype Triggers.

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.
document_typeType: Component
Required
Reference to a Doctype component. If set to the Base document type, this trigger will fire for all documents.
event_segmentType: Enum
Allowed values:
  • PRE_CUSTOM
  • POST_CUSTOM
  • UNSPECIFIED
For internal Veeva use only.
eventsType: Enum
Multi-value
Allowed values:
  • BEFORE_UPDATE
  • AFTER_UPDATE
  • BEFORE_DELETE
  • AFTER_DELETE
  • BEFORE_INSERT
  • AFTER_INSERT
Specifies the type of data change that causes this trigger fire. Learn more about Doctype Trigger Events.
levelType: Enum
Allowed values:
  • DOCUMENT
  • DOCUMENT_VERSION
Determine if a trigger fires when data operations occur at the document version level or the document level. Learn more about Doctype Trigger Event Levels.
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
The order in which to fire the trigger. If not specified, the order is equivalent to NUMBER_10.
source_codeType: SdkCode
Max length: 1048576
The Vault Java SDK source code for the trigger.
OperationSupport
Create
Recreate
Alter
Drop
Rename
Describe
Generate Recreate
Queryable