vlocode-project - v1.40.0-beta-4
    Preparing search index...
    Index

    Constructors

    Properties

    connectionProvider: SalesforceConnectionProvider
    container: Container
    logger: Logger
    objectLookupService: SalesforceLookupService
    vlocityGlobalKeyFields: string[] = ...

    List of Vlocity global identifier field names that need verification after deployment. These fields may be modified by Vlocity triggers during deployment, requiring additional verification and potential updates to ensure data consistency.

    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.

    • Handles errors encountered during the deployment of a specific datapack record. If the deployment has been cancelled, this method will return immediately without performing any actions. Otherwise, it invokes a specified function (onRecordError) to handle the error, passing the problematic datapack record as an argument.

      Parameters

      Returns Promise<void>

      A promise that resolves when the error handling process is complete.

    • 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>