The LifecycleAPI manages the lifecycle of documents

Hierarchy

Constructors

Methods

Constructors

Methods

  • Initiate a lifecycle event against a binder or document.

    Move a document to staging:

    const service = new VeevaService(credentials)
    await service.document.lifecycle.initiate(2000, 0, 1, 'move_to_staged__c')

    Returns

    The API response from Veeva

    Parameters

    • id: number

      The id of the document

    • majorVersion: number

      The major version number of the document

    • minorVersion: number

      The minor version number of the document

    • name: string

      The name of the action to initiate

    Returns Promise<IVeevaResponse>

Generated using TypeDoc