Configuration for the Datapack Exporter instance.
Private
Readonly
autoPrivate
datapacksReadonly
definitionsConfiguration for the Datapack Exporter instance.
Private
Readonly
expanderNumber of parallel exports to run when exporting related objects. Set to 1 to disable parallelism and run all exports sequentially.
Private
Readonly
loggerPrivate
Readonly
lookupPrivate
matchingMaximum depth to export objects, when the depth is reached the exporter will stop exporting the object and export a reference instead.
Private
Readonly
schemaPrivate
Readonly
unwriteablePrivate
Readonly
vlocityPrivate
addPrivate
addPrivate
addPrivate
asPrivate
buildPrivate
buildPrivate
buildPrivate
buildPrivate
buildSObjectPrivate
convertPrivate
evalPrivate
evalGenerate a datapack export for an object by the object id. Returns the datapack object in conslidated form without expanding. Als returns the parent keys of the datapack including the id's of the parent objects to allow exporting related objects if needed by calling exportObject with the parent object id.
Id of the object to export
Optional
context: DatapackExportOptionsExports and expands and expands an object identified by its ID. Optionally, you can provide a scope to export the object with a specific configuration.
The ID of the expandable object to export and expand.
Optional
context: DatapackExportOptionsOptional export context.
A promise that resolves to the expanded datapack result.
Private
exportPrivate
exportPrivate
getOptional
scope: stringPrivate
getPrivate
getPrivate
getOptional
scope: stringPrivate
getOptional
scope: stringPrivate
guessPrivate
ignoreOptional
scope: stringPrivate
lookupPrivate
processPrivate
tryPrivate
updatePrivate
updatePrivate
validate
The
DatapackExporter
class is responsible for exporting and expanding Salesforce objects into datapacks. It provides methods for exporting objects, expanding objects, and generating datapack exports.The exporter uses the SalesforceLookupService to lookup Salesforce objects and the SalesforceSchemaService to describe Salesforce objects.
Definitions for the export and expand process are stored in the DatapackExportDefinitionStore which is a singleton and can be accessed from the container using
contaioner.get(DatapackExportDefinitionStore)
.Usage