4

Does anyone know if it's possible to apply an OmniStudio license to a Scratch Org? I'd like to install the OmniStudio managed package (outlined here: https://docs.vlocity.com/en/Prepare-to-Install-the-OmniStudio-Package.html) into a Scratch Org however I get the following errors when attempting to install:

Installation errors:

  1. (FlexCardDesigner) Validation Errors While Saving Record(s), Details: There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "The object type you specified OmniUiCard is invalid.".
  2. (Vlocity_OmniScript_Designer) Validation Errors While Saving Record(s), Details: There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "The object type you specified OmniProcess is invalid.".

As per this document (https://docs.vlocity.com/en/OmniStudio-Permission-Set-Licenses.html) it seems that you need to assign the permission set licences prior to package install however these don't appear in my Scratch Org. Scratch Org definition file is as follows:

  "orgName": "Demo company",
  "edition": "Developer",
  "features": [
    "EnableSetPasswordInApi",
    "ServiceCloud",
    "ServiceUser",
    "PublicSectorAccess",
    "PublicSectorApplicationUsageCreditsAddOn",
    "PublicSectorSiteTemplate",
    "Knowledge",
    "LightningServiceConsole",
    "Interaction",
    "IndustriesActionPlan",
    "FlowSites",
    "API",
    "Communities",
    "PersonAccounts",
    "RecordTypes",
    "Workflow",
    "WorkflowFlowActionFeature"
  ],
  "settings": {
    "lightningExperienceSettings": {
      "enableS1DesktopEnabled": true
    },
    "mobileSettings": {
      "enableS1EncryptedStoragePref2": false
    },
    "communitiesSettings": {
      "enableNetworksEnabled": true
    }
  }
}

Any ideas?

4 Answers 4

2

Although I wasn't able to find the right config file settings, using the new Org Shape feature (https://developer.salesforce.com/docs/atlas.en-us.238.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_shape_enable_org_shape.htm) I was able to create a Scratch Org based on an existing PSS IDO with all of the OmniStudio features available.

2

If you create the scratch org with the 'InsuranceCalculationUser' feature enabled, you can then install the Omnistudio package using sfdx force:package:install.

Page with versions: https://help.salesforce.com/s/articleView?id=000394906&type=1

0

You can sign up for a developer edition with Omnistudio preinstalled:

https://trailhead.salesforce.com/promo/orgs/omnistudiotrails

1
  • This developer org will not enable OmniStudio in a scratch org.
    – Theodoor
    Commented May 3 at 12:20
0

These two new features will enable OmniStudio to the scratch org:

{
  "features": [
     "OmniStudioDesigner",
     "OmniStudioRuntime"
  ]
}

Although they are not officially documented yet, they are called on this page in the documentation: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm

They will enable a few things:

  • In the setup show the menus:
    • Feature Settings > Omni Interaction > Omni Interaction Access Configuration
    • Feature Settings > Omni Interaction > Omni Interaction Configuration
    • Feature Settings > Omni Interaction > OmniStudio Settings
  • Make the Omnistudio metadata available in the org, like Dataraptors and Omniscripts.
  • Permission Set Licenses:
    • OmniStudio (OmniStudioDesigner)
    • OmniStudio User (OmniStudioRuntime)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .