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

    Class DatapackImportService

    Service to import multipacks stored on the org through the Vlocity DataRaptor API.

    Index

    Constructors

    Properties

    Methods

    • Installs a multipack by its name, optionally filtering the datapacks to import.

      This method retrieves the specified multipack, applies an optional filter to its datapacks, imports the filtered datapacks, activates them, and updates their status to 'Complete'.

      Parameters

      • multipackName: string

        The name of the multipack to install.

      • Optionaloptions: {
            cancelationToken?: CancellationToken;
            predicate?: (datapack: DatapackInfo) => boolean;
            progress?: ImportProgressDelegate;
            skipActivation?: boolean;
        }

        Optional runtime options to control installation. Use options.predicate to provide a filter function to decide which datapacks to import.

      Returns Promise<DatapackImportProgress>

      A promise that resolves to the import progress status of the datapacks.

    • Parameters

      • status: DatapackImportProgress
      • Optionalprogress: ImportProgressDelegate

      Returns DatapackImportProgress