vlocode-project - v2.4.3
    Preparing search index...

    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.

    Implements

    Index

    Constructors

    Properties

    contentVersionLookup: ContentVersionLookup
    logger: Logger
    salesforceService: SalesforceService

    Methods

    • Executed just before the records are being deployed; the event contains a readonly array of records. At this stage values for the records can still be manipulated. This hook point should only be used to run logic that depends on all dependencies on individual record level are resolved.

      Note: this runs on record level and use beforeDeploy to run datapack activation processes.

      Note: when this hook (re)calculates field values for the target org, clear the field in afterRecordConversion so the delta check does not compare the stale datapack value against the target org; cleared fields are excluded from any comparison and only set by this hook when the record is actually deployed.

      Parameters

      Returns Promise<void[]>

    • Parameters

      Returns Promise<
          | {
              ContentDocumentId: string;
              LinkedEntityId: string;
              ShareType: string;
              Visibility: string;
          }
          | undefined,
      >