Hierarchy

  • DatapackDeployer

Constructors

Properties

connectionProvider: SalesforceConnectionProvider
container: Container
logger: Logger
objectLookupService: SalesforceLookupService

Methods

  • Performs additional tasks after the deployment of a datapack record. If triggers are disabled in the deployment options, it sets the Vlocity trigger state to true. Verifies the deployed field data for specific fields. Runs the 'afterDeployRecord' spec function with the provided arguments.

    Parameters

    • deployment: DatapackDeployment

      The DatapackDeployment object representing the deployment.

    • datapackRecords: Iterable<DatapackDeploymentRecord>

      An iterable of DatapackDeploymentRecord objects representing the deployed records.

    Returns Promise<void>

    A Promise that resolves when all the tasks are completed.

  • Executes the necessary actions before deploying a record. If the disableTriggers option is set in the deployment, it will disable triggers. If the deployment is cancelled, the method will return early. It then runs the beforeDeployRecord spec function with the provided arguments.

    Parameters

    Returns Promise<void>

    A Promise that resolves when the actions are completed.

  • Run a datapack spec function and await the result

    Type Parameters

    • T extends keyof DatapackDeploymentSpec

    • E extends ((datapack) => any) | ((records) => any) | ((records) => any) | ((event) => any) | ((event) => any) | ((event) => any) | ((event) => any) | ((event) => any)

    Parameters

    Returns Promise<void>

  • Disable or enable all Vlocity triggers

    Parameters

    • newTriggerState: boolean

      true to enable all Vlocity Triggers; false to disabled all Vlocity triggers

    Returns Promise<void>

  • Verifies the data deployed to the org matched the local data for the specified list of fields. This is especially useful for GlobalKey fields that are updated by a Vlocity before update/insert trigger making it impossible to update the global key when Vlocity triggers are enabled.

    Parameters

    Returns Promise<void>