Configuration for the Datapack Exporter instance.
Private ReadonlyautoPrivatedatapacksReadonlydefinitionsConfiguration for the Datapack Exporter instance.
Private ReadonlyexpanderNumber of parallel exports to run when exporting related objects. Set to 1 to disable parallelism and run all exports sequentially.
Private ReadonlyloggerPrivate ReadonlylookupPrivatematchingMaximum depth to export objects, when the depth is reached the exporter will stop exporting the object and export a reference instead.
Private ReadonlyschemaPrivate ReadonlyunwriteablePrivate ReadonlyvlocityPrivateaddPrivateaddPrivateaddPrivateasPrivatebuildPrivatebuildPrivatebuildPrivatebuildPrivatebuildPrivateconvertPrivateevalPrivateevalGenerate 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
Optionalcontext: 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.
Optionalcontext: DatapackExportOptionsOptional export context.
A promise that resolves to the expanded datapack result.
PrivateexportPrivateexportPrivategetOptionalscope: stringPrivategetPrivategetPrivategetOptionalscope: stringPrivategetOptionalscope: stringPrivateguessPrivateignoreOptionalscope: stringPrivatelookupPrivateprocessOptionaloptions: { recursive?: boolean }PrivatetryPrivateupdatePrivateupdateUpdates the references in the given datapack to matching references when the reference is also included as SObject datapack.
The datapack to update.
Privatevalidate
The
DatapackExporterclass 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).Example