Skip to content
Promote Force
Docs: OmniStudio and DataPacks

Docs

OmniStudio and DataPacks

Signed in? Open this page in the app, with links straight to your team's screens.

Promote OmniScripts, Integration Procedures, Data Mappers, FlexCards and EPC catalog data through the same branches, gates, merge queue and rollback as the rest of your metadata.

Early access. OmniStudio support has been built and tested against recorded and hand-written Salesforce and Vlocity Build Tool output, not yet against real Industries orgs. The known limits list what is still unverified.

What is supported

OmniStudio content comes in two forms. With OmniStudio Metadata on, components are ordinary Metadata API types (OmniScript, OmniIntegrationProcedure, OmniDataTransform, OmniUiCard and the newer *Definition types). Without it, and for EPC catalog data in every org, they are DataPacks: JSON records that the Vlocity Build Tool (VBT, now the OmniStudio Build Tool) exports and deploys. One promotion can mix normal metadata, OmniStudio metadata and DataPacks.

Your orgs Project mode How Promote Force deploys
Standard runtime, OmniStudio Metadata on Metadata API Metadata API (sf). Deploys in waves when needed; activation is checked after every deploy.
Managed package runtime, OmniStudio Metadata on Metadata API Metadata API, then activation and LWC compilation (automatic with “Activate and compile automatically”, else a required manual step).
Managed package (vlocity_cmt, vlocity_ins, vlocity_ps), Metadata off DataPacks Vlocity Build Tool (VBT) DataPacks for OmniScripts, Integration Procedures, DataRaptors, cards and templates.
Any of the above with EPC (vlocity_cmt) Hybrid (or DataPacks) with EPC catalog data on EPC catalog DataPacks (products, price lists, attributes, promotions…) through VBT.

Not supported yet: running the OmniStudio Migration Assistant for you, Revenue Cloud (RLM) catalog data on standard objects, Angular OmniScripts and legacy (non-LWC) Vlocity Cards beyond deploying them as DataPacks, and editing OmniStudio components inside Promote Force.

Setting up a project

  1. Connect your orgs under Connected orgs. After each health check Promote Force reads the installed Industries packages, the OmniStudio settings and what data exists, and shows a badge per org (for example “OmniStudio: Standard runtime” or “Managed package (vlocity_cmt 252.x), DataPacks”, plus “EPC”). Open the badge for the details and Re-detect.
  2. On the project page, open Industries (OmniStudio). The mode is suggested from the bootstrap (or production) org; owners and admins can change it, along with the DataPack folder (default vlocity), the DataPack types, EPC catalog data, the metadata deploy strategy, activation, retry rounds, preview diffs and the VBT job overrides.
  3. Check the Stage orgs table on the same page. A stage whose org can’t take the project’s form shows “OmniStudio mismatch” on the pipeline canvas, and promotions into it are blocked in the merge checks: a Metadata API project with a DataPacks org, a DataPacks project with a standard-runtime org, or orgs with different package namespaces in one pipeline.
  4. Developers run pf git setup once per machine, so OmniStudio files get the Salesforce-aware merge driver.

Promote Force never changes OmniStudio settings. Turning on OmniStudio Metadata or turning off the managed package runtime cannot be undone in Salesforce. Promote Force only reads these settings and reports them; change them in the org yourself.

What lives in Git

  • OmniStudio metadata sits in the package directory like any other type (omniScripts/, omniIntegrationProcedures/, omniDataTransforms/, omniUiCard/).
  • DataPacks sit in the DataPack folder, one folder per DataPack: vlocity/{Type}/{Folder}/ with a _DataPack.json and its child files. The Type/Folder pair is VBT’s DataPack key, and Promote Force shows it as datapack:{Type} in collisions, reviews and deploys.
  • .promoteforce/industries.yaml mirrors the project settings (read-only, for local VBT use), .forceignore keeps sf away from the DataPack folder, and .gitattributes routes OmniStudio files to the merge driver. Promote Force commits these when the settings change.
  • Every export is normalised so diffs stay small: volatile fields (Ids, dates, owners) are dropped, the %vlocity_namespace% placeholder is kept, formatting is stable and arrays are never reordered. Raw Salesforce Ids that remain are reported, because they only exist in one org.
  • Keep each component in one form. A component in the wrong form for the project’s mode (or in both forms) is named on push and blocks its promotion in the OmniStudio gate.

Pull from my org

Pull from my org lists OmniStudio changes next to your metadata, in three groups: Metadata, OmniStudio and DataPacks (catalog). DataPacks come from one query per type against your org, so anything changed since your last pull shows up; packs that came to your org through a sync are left out.

  • The active version of an OmniScript or Integration Procedure is offered. A newer inactive version gets a badge; pick it in the version picker to export that version instead.
  • When a pack you pull uses another pack you also changed (an OmniScript calling an Integration Procedure, a product using an attribute category), Promote Force suggests including it. Nothing is added silently.
  • Exports are normalised, so the diff you commit holds only real changes.

Reviewing and merging

  • Review summaries describe OmniStudio changes per element, for example “OmniScript Order/Create/English: +2 elements, Address changed”, and Data Mapper mappings and activation changes.
  • The OmniStudio tree tab next to the diff shows the element tree side by side with added, removed and changed badges and a property-level diff. A comment on a tree node lands on the element’s line in the file.
  • The merge driver merges DataPack child records by their natural key (GlobalKey, element name, source key) and OmniScript elements by name. If both sides change the same field, or move elements into the same slot, the whole file is a conflict: a wrong automatic merge is worse than a conflict. The conflict editor shows the OmniStudio tree of both sides as context.
  • Collisions are found across forms: the metadata and DataPack forms of one OmniScript, or two versions of it, collide.

Gates: checks before anything is deployed

VBT has no check-only deploy, so Promote Force runs its own OmniStudio gate on every promotion of a project whose mode isn’t Off. It must pass to enqueue, and the merge queue runs it again on the batch before deploying.

  • On the source: every DataPack file parses, the fields VBT matches by are present, no GlobalKey is used twice in the repository, no component is in the wrong form, raw Ids are warned about, and credentials in Integration Procedures or DataPacks (passwords, client secrets, tokens in URLs) block.
  • Against the target org (after the stage’s substitutions): each changed DataPack must match at most one record (VBT would fail with “Duplicate Results found”), and packs referenced but not in the repository must exist in the org. Failures show the SOQL and the record Ids. A substitution that breaks a JSON file fails the gate.
  • Preview (production by default, or every stage): VBT’s packGetDiffs summarised as “what the org will see” (changed, identical, new).
  • Metadata validation is waves-aware. When a later wave uses a component added by an earlier one, it can only be validated at deploy time, and the gate shows “validated at deploy time” as a warning.

How a deploy runs

  1. Validate the metadata (check-only), then run the DataPack checks against the stage org.
  2. Snapshot both parts: the metadata retrieve, plus a VBT export of the DataPacks the batch changes.
  3. Quick deploy the metadata. If OmniStudio types and dependents (Permission Sets, FlexiPages…) hit Salesforce’s “UddInfo” error, the deploy is split into waves: core metadata, then OmniStudio types, then their dependents. “Always in waves” plans waves up front; “Auto” falls back on the error.
  4. Deploy the DataPacks with VBT, in layers: a DataPack goes after the changed DataPacks it uses. Each layer runs packDeploy, then packRetry while the error count goes down, up to the project’s retry rounds (row locks and timeouts get one extra round).
  5. Check activation in the org, then merge the batch into the stage branch.

Failures are parsed per component with hints (for example “No match found”: deploy the referenced pack first or fix its matching key). They show in the promotion’s OmniStudio section and the batch log. Deleted DataPacks are never deleted in the org (VBT can’t do it reliably): the promotion gets an optional step listing them to remove by hand.

Partial deploys: Retry, Roll back, Mark deployed

When a later wave or the DataPacks fail after the metadata is already in the org, the batch becomes Partially deployed. The stage turns red on the canvas, the stage branch is not merged, and the stage’s queue waits for one of three actions in the queue panel:

  • Retry (or Retry DataPacks when only DataPacks are left) re-runs only what did not deploy, from the same batch. VBT upserts by GlobalKey, so this is safe.
  • Roll back restores the org from the snapshot (only the parts that deployed); the batch’s promotions fail.
  • Mark deployed (release managers and above, with a reason) merges the batch as it is, for when you fixed the rest in the org by hand.

Rolling back OmniStudio

  • DataPacks are restored first (redeployed from the snapshot), then the metadata, in waves when needed.
  • The OmniScripts and Integration Procedures that were active before are activated again (VBT creates new versions; the new ones stay in the org, inactive).
  • DataPacks the deploy added stay in the org: the rollback lists them as warnings to remove by hand.

Activation and LWC compilation

After every deploy Promote Force queries the org to check that what is active in Git is active there.

  • Standard runtime: an inactive component fails the deploy with a hint (the batch is partially deployed and Retry checks again).
  • Managed package runtime, “Verify after deploy”: a required post-deployment step lists each OmniScript and FlexCard to activate and compile, with links. Ticking it re-checks the org; promotions out of that stage wait until everything is active.
  • “Activate and compile automatically”: the runner compiles the changed OmniScripts and FlexCards with its own Chromium (VBT’s Puppeteer compile for DataPacks, the managed package’s compile pages for metadata), then checks again. Anything that didn’t compile falls back to the manual step, with the error per component. It needs the web OAuth scope on the org connection.

Large OmniStudio jobs (catalog DataPacks, 100+ packs, whole-type exports, every compilation) take a per-org lock, so two of them never run against one org at the same time; the second waits up to two hours.

EPC catalog data

Turn on Include EPC catalog data in the project’s Industries settings (Hybrid or DataPacks mode) to promote Product2 (with its price book entries, attribute assignments and child items), Attribute Categories, Price Lists, Price Books, Calculation Matrices and Procedures, Catalogs, Promotions and Offer Migration Plans.

  • Catalog DataPacks deploy after the OmniStudio types, attributes and prices before products, and a product after the changed attribute categories and products it uses.
  • In vlocity_cmt orgs, products deploy with VBT’s recommended post step EPCProductJSONUpdate.cls. Catalog layers run in smaller transactions (maximumDeployCount 100, defaultMaxParallel 1). Set postStepApex, maximumDeployCount or defaultMaxParallel in the job overrides to change them.
  • Deploys never export a whole catalog: only the changed keys, with dependencies from Git. A full export happens once, at project bootstrap, per type.
  • Revenue Cloud (RLM) catalog data on standard objects is not covered.

Values that differ per stage

Stage substitutions apply to DataPack JSON as well as XML: literal values are escaped for JSON (and twice inside propertySetConfig), and a result that isn’t valid JSON leaves the file unchanged and fails the OmniStudio gate. The substitution editor has presets for Integration Procedure HTTP endpoints, Named Credential names and Data Mapper filter values. See Deploying safely.

Monitors and insights

  • Drift: a stage monitor also lists the DataPacks the stage branch tracks that were edited in the org after the last deploy. They are found from each record’s last-modified date, not confirmed with an export; Pull drift exports them so the diff shows what really changed.
  • Scheduled validation also runs the DataPack target checks against the stage org, so GlobalKeys that became duplicated there, or references to missing packs, fail the monitor before the next deploy does.
  • Insights (a pipeline’s Performance page) adds an OmniStudio card: DataPack deploy failure rate, average packRetry rounds, activation failures, the share of partial deploys, the types that fail to deploy most, and how many deployed promotions carried OmniStudio.

Fixing duplicate GlobalKeys

Duplicate or missing GlobalKeys are the most common DataPack failure. The OmniStudio gate and the scheduled checks name the records (with their Ids and the SOQL). Promote Force doesn’t fix them for you:

  1. Run VBT’s cleanOrgData against the org (it fills in missing GlobalKeys and reports duplicates), or fix the records by hand.
  2. To make it routine, add it to the stage’s pre-deployment step templates as an Anonymous Apex or checklist step.
  3. Re-run the gate (or the monitor) to confirm.

Moving to the standard runtime

Salesforce recommends moving managed-package orgs to the OmniStudio standard runtime and Metadata API deploys (its OmniStudio Migration Assistant does the conversion). During the move, switch the project to Hybrid once the components are metadata: catalog data stays in DataPacks. The mixed-forms check and cross-form collisions catch a component left in both forms.

Known limits

Promote Force has been built and tested against recorded and hand-written Salesforce and VBT output, not yet against real Industries orgs. The behaviour below is unverified until real-org testing confirms it:

  • Whether a Metadata API deploy activates OmniScripts on the standard runtime by itself. Promote Force always checks, waits 60 seconds and checks again before failing.
  • The UddInfo “bulkDml” error that mixed OmniStudio and Permission Set deploys raise, and the three-wave fix. The error is matched on its documented text.
  • VBT’s output formats: the per-DataPack results and error lines are read from VBT 1.17.24’s source and synthetic fixtures, not from a recorded real deploy.
  • The packGetDiffs statuses used for the preview (“Unchanged”, “Ignored”, “Error”).
  • Folder names for odd characters, and the index fields of Catalog (CatalogCode), Promotion (GlobalKey) and Offer Migration Plan (Code) DataPacks. A wrong field makes that type’s listing fail with a warning; it never blocks a promotion.
  • Re-logging in after INVALID_SESSION_ID during packRetry (VBT may keep its cached token).
  • LWC compilation through the managed package’s compile pages with OmniProcess / OmniUiCard record Ids.
  • The catalog tuning defaults (maximumDeployCount 100, defaultMaxParallel 1) and the memory needed for 500+ product catalogs.
  • Whether source tracking reports OmniStudio types in every org edition. Pulls always list them with listMetadata as well.

Also by design: VBT can’t validate DataPacks without deploying them or roll them back transactionally. The gates, the snapshot and the partial-deploy actions are how Promote Force makes up for it. DataPack deletes and the removal of packs added by a rolled-back deploy are manual.