Private ReadonlydefinitionPrivate ReadonlydefinitionPrivate ReadonlyloggerPrivate ReadonlylwcPrivate ReadonlyremoteMethod that is called to activate a single the script
Private ReadonlysalesforcePrivate ReadonlyscriptActivates the specified OmniScript, creates the compilation record in Salesforce and sets the OmniScript to active. Any existing active compilation records will be deleted.
OmniScript to activate
Optionaloptions: OmniScriptActivationOptionsExtra options that control how the script is activated
Activate the LWC component for the specified OmniScript regardless of the script is LWC enabled or not.
Id of the OmniScript for which to activate the LWC component
Optionaloptions: OmniScriptLwcDeployOptionsGet the LWC component bundle as metadata package for the specified OmniScript
Id or definition of the OmniScript
Optionaloptions: OmniScriptLwcCompileOptionsDeployable Metadata package
PrivatedeletePrivatedeleteDeletes the OmniScriptDefinition__c records for the specified OmniScript
OmniScript to clean the script definitions for
Generate the LWC component bundlen for the specified OmniScript definition and deploy it to the org.
Definition of the OmniScript to deploy
Optionaloptions: OmniScriptLwcDeployOptionsExtra options that control how the script is activated
PrivatedeployOptionaloptions: OmniScriptLwcCompileOptionsPrivatedeployOptionaloptions: OmniScriptLwcDeployOptionsPrivatelocalPrivatereactivateOptionaloptions: OmniScriptActivationOptionsPrivateremotePrivatescriptOptionaloptions: { useStandardRuntime?: boolean }PrivateserializeSerializes 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.
JSON definition of the OmniScript
Array of strings containing the serialized OmniScript definition
PrivatestandardPrivateupdateOptionalextraActivationValues: Record<string, any>PrivateupdatePrivateupsert
Activates an OmniScript creating compilation records in Salesforce and sets the script state to active.