Private
Readonly
salesforceThis hook is almost identical to the __type hook except that executes after a datapack is converted into 1 or more Salesforce records.
The list of records past into this hook contains all the records generated for a single datapack; it is not possible to remove/drop any record but individual records can be manipulated,
Note At this point dependencies are not yet resolved
This hook is called before deploying the first record in a datapack, and is only called once very datapack in the deployment.
pre-step
job from the Vlocity tools library. The type
argument passed to getRecords should not be prefixed with a namespace.
I.e; to get a list of OmniScript__c
records in the deployment use:
DatapackDeploymentEvent.getRecords('OmniScript__c')
instead of
DatapackDeploymentEvent.getRecords('vlocity_cmt__OmniScript__c')
The event object also exposes getDeployedRecords; in the __type this will always return an empty array.
event object
Private
purge
A deployment spec contains Datapack specific logic and allows hooking into the deployment process to manipulate what get's deployed and execute post-deployment activation logic.
Implementers can implement any of the specified functions in this interface, all functions are optional and only the implemented functions are executed.
For many standard datapacks spec logic is implemented under the ./deploymentSpecs folder.