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

    Activates an OmniScript creating compilation records in Salesforce and sets the script state to active.

    Index

    Constructors

    Properties

    definitionGenerator: OmniScriptDefinitionGenerator
    definitionProvider: OmniScriptDefinitionProvider
    logger: Logger
    remoteActivationFunction: "%vlocity_namespace%.BusinessProcessController.bulkActivateBP(new List<Id> { '%script_id%' });" = ...

    Method that is called to activate a single the script

    salesforceService: SalesforceService
    scriptAccess: OmniScriptAccess

    Methods

    • Serializes and split the OmniScript definition into chunks of max 131072 characters to avoid the 131072 character limit of the Salesforce String field.

      The split ensures that chunks will never start or end with a whitespace character as whitespace characters are trimmed when saving the record.

      Parameters

      Returns string[]

      Array of strings containing the serialized OmniScript definition

    • Parameters

      • type: string
      • toolingRecord: { FullName: string; Id?: string; Metadata: any }

      Returns Promise<{ errors: string[]; success: boolean }>