Use Your Salesforce DX CLI to Deploy Omniscripts or Flexcards (Managed Package)

For the managed package runtime, you can use your own Salesforce DX CLI to deploy Omniscripts or Flexcards that are compiled locally.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. To use your own Salesforce DX CLI, set useSfdxCli to true in your job file like this:
    useSfdxCli: true

    The output looks like this:

    Output where useSfdxCli is true

    When useSfdxCli is false or is omitted, the output looks like this:

    Output where useSfdxCli is false or omitted
  2. To keep the Omniscript activated after deployment and activation, if LWC deployment fails, add this parameter:
    keepOSActiveWhenLWCDeploymentFails: true
    

    This configuration affects only the local compilation of Omniscripts and Flexcards.