Private ReadonlyconnectionPrivate ReadonlycontainerPrivate ReadonlyloggerPrivate ReadonlyobjectPrivate ReadonlyschemaPrivate ReadonlyspecPrivateafterPerforms 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.
The DatapackDeployment object representing the deployment.
An iterable of DatapackDeploymentRecord objects representing the deployed records.
A Promise that resolves when all the tasks are completed.
PrivateafterEvent handler running after the deployment
Datapacks that have been deployed
PrivatebeforeExecutes 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.
The DatapackDeployment object.
An iterable of DatapackDeploymentRecord objects.
A Promise that resolves when the actions are completed.
PrivatebeforeEvent handler running before the deployment
Datapacks being deployed
PrivatebeforeExecutes the necessary actions before retrying a record deployment.
The DatapackDeployment object.
An iterable of DatapackDeploymentRecord objects.
Create new Datapack deployment
Datapacks to deploy
Optionaloptions: DatapackDeploymentOptionsOptionalcancellationToken: CancellationTokenDatapack deployment object
Creates and starts a deployment returning the DatapackDeployment object which contains results of the deployment.
Datapacks to deploy
Optionaloptions: DatapackDeploymentOptionsoptions passed to the deployment
OptionalcancellationToken: CancellationTokenoptional cancellation token
PrivateevalPrivatefilterPrivategetPrivatehandlePrivateonHandles 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.
The current datapack deployment instance.
The specific datapack record that encountered an error during deployment.
A promise that resolves when the error handling process is complete.
PrivaterunRun a datapack spec function and await the result
Event/function type to run
Options for executing the spec (args, ignoreErrors, errorSeverity)
PrivatesetDisable or enable all Vlocity triggers
true to enable all Vlocity Triggers; false to disabled all Vlocity triggers
PrivateverifyVerifies 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.
records
Array of field names to compare
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.