Revenue Cloud leans on OmniStudio in places you might not expect. Quote and invoice documents read their data through Data Mappers, guided selling is an Omniscript, and the collections console uses FlexCards. All of that is configuration someone built in a designer, and it belongs in source control next to the rest of the org.
This page covers how we move OmniStudio components with the Salesforce CLI: which runtime an org is on, what the files look like, how to retrieve and deploy them, and the two older or one-off tools (the Build Tool and the Migration Assistant) you will meet on other teams' orgs. The retrieve and the Data Mapper run below are ones we ran against our lab org. This page has no lab yet.
What it's for
You need this page when:
- A Data Mapper behind a quote or invoice template changed in a sandbox, and the change has to reach the next org.
- A customer's OmniStudio work lives only in the org, and you want it in Git before you touch it.
- You inherit an org on the OmniStudio managed package (the Vlocity namespaces) and need to know whether the Salesforce CLI works there at all. Usually it doesn't, yet.
- Someone plans to move a managed-package org to the standard runtime, and you have to explain what the Migration Assistant does before they run it.
How it works
Two runtimes
In short: the managed package stores components in custom objects and moves them as DataPacks; the standard runtime stores them in standard objects and moves them with the Metadata API.
OmniStudio exists in two forms. The original, Omnistudio for Managed Packages, is installed as a package (namespaces such as vlocity_cmt or omnistudio) and keeps its components in the package's custom objects. The standard version keeps them in standard objects: OmniProcess for Omniscripts and Integration Procedures, OmniDataTransform for Data Mappers, and OmniUiCard for FlexCards.1
The tools follow the storage:
| Managed package runtime | Standard runtime | |
|---|---|---|
| Where components live | Package custom objects | OmniProcess, OmniDataTransform, OmniUiCard |
| How they move | DataPacks, with the Omnistudio Build Tool (vlocity)4 |
Metadata API, with sf project retrieve and deploy2 |
| What turns it on | Installing the package | The Omnistudio Metadata setting, and the standard runtime setting3 |
The Omnistudio Metadata setting only covers the standard objects. Salesforce says it "doesn't apply to Omnistudio custom objects", and every Build Tool article in Help is marked as being for the managed package runtime.24 So an org has one path: DataPacks if it runs the package, the Metadata API if it runs the standard runtime. We don't move the same components both ways in one org.
Revenue Cloud orgs built from Salesforce's launchpad are on the standard runtime. Its scratch org definition (config/project-scratch-def.json) sets enableStandardOmniStudioRuntime and enableOmniStudioMetadata under omniStudioSettings. We retrieved that setting from our lab org (below) and both are true there. Once enableOmniStudioMetadata is on, it can't be turned off.3
The metadata types and their files
In short: five OmniStudio types plus the two Business Rules Engine types, each with its own folder and suffix, and most file names carry a version number.
| What you build | Metadata type | Folder and file |
|---|---|---|
| Omniscript | OmniScript |
omniScripts/<Type>_<SubType>_<Language>_<Version>.os-meta.xml |
| Integration Procedure | OmniIntegrationProcedure |
omniIntegrationProcedures/<Type>_<SubType>_<Language>_<Version>.oip-meta.xml |
Data Mapper (formerly DataRaptor) |
OmniDataTransform |
omniDataTransforms/<Name>_<Version>.rpt-meta.xml |
FlexCard |
OmniUiCard |
omniUiCard/<Name>_<Author>_<Version>.ouc-meta.xml |
| Decision matrix | DecisionMatrixDefinition |
decisionMatrixDefinition/<Name>.decisionMatrixDefinition-meta.xml |
| Expression set, such as a pricing procedure | ExpressionSetDefinition |
expressionSetDefinition/<Name>.expressionSetDefinition-meta.xml |
The folders and suffixes come from the Salesforce CLI's own metadata registry. The unique name pattern, Type_SubType_Language_VersionNumber, is how Salesforce defines it for Omniscripts and Integration Procedures.78 Real files from the launchpad look like QuantumBit_GuidedSelling_English_1.os-meta.xml, RLMQuoteExtractBasic_1.rpt-meta.xml and ShowCollectionsPerformanceMetrics2_Salesforce_1.ouc-meta.xml.
The names that build those identifiers must be alphanumeric: no spaces, no special characters, and no underscores inside the parts. Integration Procedures are identified by Type and SubType, Omniscripts by Type, SubType and Language, Data Mappers and FlexCards by Name. The Metadata setting refuses to switch on while any component breaks the rule.2
Active, and who owns the designer
In short: each file says whether it's active and whether it belongs to the standard designer, and the field name for "active" isn't the same on every type.
Two fields matter when you read or edit these files:
- Active. Omniscripts, Integration Procedures and
FlexCardsuseisActive; Data Mappers useactive. Both default tofalse.789 isManagedUsingStdDesigner. Whether the component is managed in the standard designer.79 Every file we read from the launchpad and the lab org hasfalse.
Activation in the file isn't the whole story. Both quote Data Mappers in our lab org come back with <active>false</active>, and one of them still ran when we called it (see Test and debug).
Versions and activation
In short: a new version keeps the component's identity; only the active version runs, and it's read-only.
A new version of an Omniscript is a new revision of the same component: it keeps the Type, SubType and Language, which together form the identifier and name the compiled Lightning web component. The active version is read-only, so you deactivate before editing.10 Each version is its own file (_1, _2), so a deploy can bring a new version without making it the one that runs.
Activation is a designer or setup action. Use the designer, or a deploy with the flag set, not a record update. Salesforce marks OmniDataTransform, OmniProcess and the other OmniStudio objects "for internal use only" and says not to create, edit or delete their records, because doing so "may result in errors with your implementation".11 The OmniStudio configuration tables behind the Metadata setting (OmniScriptConfig, OmniDataTransformConfig and the rest) are another reason: a record written around them is a component the Metadata API doesn't know about.2
Build it
Work from a Salesforce DX project. We used a scratchpad project with one package directory and sourceApiVersion 66.0. The commands use rlm-base__my-lab, the Salesforce CLI alias CumulusCI gives the lab org from the setup page; swap in your own org's alias.
1. Check the runtime. Retrieve the OmniStudio settings and read two lines:
sf project retrieve start --metadata Settings:OmniStudio --target-org rlm-base__my-lab
<enableOmniStudioMetadata>true</enableOmniStudioMetadata>
<enableStandardOmniStudioRuntime>true</enableStandardOmniStudioRuntime>
Both true means the Metadata API path below works. If the org has a Vlocity namespace and no standard runtime, skip to the Build Tool.
2. Retrieve one component. The member name is the unique name, version suffix included. On 2026-11-08 we listed the org's Data Mappers with sf org list metadata --metadata-type OmniDataTransform and retrieved the quote extract behind the launchpad's quote proposal template:
sf project retrieve start --metadata OmniDataTransform:RLMQuoteExtractBasic_1 --target-org rlm-base__my-lab
It returned one file, force-app/main/default/omniDataTransforms/RLMQuoteExtractBasic_1.rpt-meta.xml (55 KB, 55 omniDataTransformItem entries). The header reads:
<OmniDataTransform xmlns="http://soap.sforce.com/2006/04/metadata">
<active>false</active>
...
<isManagedUsingStdDesigner>false</isManagedUsingStdDesigner>
<name>RLMQuoteExtractBasic</name>
...
<type>Extract</type>
<uniqueName>RLMQuoteExtractBasic_1</uniqueName>
<versionNumber>1.0</versionNumber>
3. Retrieve a set with a package.xml. For anything you'll deploy together, list it in a manifest. This is the one we ran: a Data Mapper pair, the document template that uses them, and the settings.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>RLMQuoteExtractBasic_1</members>
<members>RLMQuoteTransformBasic_1</members>
<name>OmniDataTransform</name>
</types>
<types>
<members>RLM_QuoteProposal_1</members>
<name>DocumentTemplate</name>
</types>
<types>
<members>OmniStudio</members>
<name>Settings</name>
</types>
<version>66.0</version>
</Package>
sf project retrieve start --manifest manifest/package.xml --target-org rlm-base__my-lab
All four components came back. OmniScript, OmniIntegrationProcedure, OmniDataTransform and the decision matrix and expression set types accept * in a manifest, which is handy for a first pull of everything.79
4. Deploy. Deploying works the same way in reverse:
sf project deploy start --source-dir force-app/main/default/omniDataTransforms --target-org <alias>
sf project deploy start --manifest manifest/package.xml --target-org <alias>
We didn't deploy OmniStudio components for this page, so we haven't checked how a deploy treats an active version that already exists in the target. Deploy to a sandbox first, then check what's active (Test and debug).
Managed-package orgs: the Omnistudio Build Tool
The Build Tool (formerly the Vlocity Build Tool) is a Node.js command-line tool that exports and deploys DataPacks in a source-friendly folder layout. It's for the managed package runtime only.4 Install it with npm:
npm install --global vlocity
vlocity help
A job file (YAML) says where the project lives and what to export. The smallest one Salesforce shows is a single line:5
projectPath: ./example_vlocity_build
Then export from the source org and deploy to the target, using packRetry when a run reports errors:6
vlocity -sfdx.username [email protected] -job Example.yaml packExport -key DataRaptor
vlocity -sfdx.username [email protected] -job Example.yaml packRetry
vlocity -sfdx.username [email protected] -job Example.yaml packDeploy
vlocity -sfdx.username [email protected] -job Example.yaml packRetry
-key narrows the export to a DataPack type, or a type and key such as DataRaptor/MyMapper.5 We didn't run the Build Tool: our lab org is on the standard runtime, where it doesn't apply.
Leaving the managed package: the Migration Assistant
The Omnistudio Migration Assistant is a Salesforce CLI plugin. On a managed-package org with the custom data model, it creates the components on the standard objects and gives them valid unique names. On the standard data model it updates the names in place.12 Salesforce's own advice is to never run it on production first: refresh a sandbox and work there.14
Install the version Salesforce tells you to. The Help article says to take the newest version tagged rc on npm, uninstalling any older copy first.12 That matters: on 2026-11-08 npm's latest tag pointed at 1.7.0, from November 2025, which only has info and migrate. The assess command exists only in the 2.0 release candidates.
sf plugins uninstall omnistudio-migration-tool
sf plugins install @salesforce/[email protected]
Run Assess, read the reports, fix what they flag, assess again, and only then migrate. These are the flags from 2.0.0-rc.71's own --help:
# Assess everything, all versions
sf omnistudio migration assess --target-org <sandbox-alias> --allversions
# Assess one component type: os, ip, fc, dm, autonumber, cl or sfl
sf omnistudio migration assess --target-org <sandbox-alias> --only dm
# Include Apex, LWC, FlexiPages and Experience sites that reference components
sf omnistudio migration assess --target-org <sandbox-alias> --relatedobjects apex,lwc,flexipage,expsites
# Then migrate, with the same flags
sf omnistudio migration migrate --target-org <sandbox-alias> --allversions
| Flag | What it does |
|---|---|
-u, --target-org |
The org. Required |
-a, --allversions |
Every version of each component, not only the latest |
-o, --only |
One component type: os, ip, fc, dm, autonumber, cl or sfl |
-r, --relatedobjects |
Also assess or update apex, lwc, flexipage, expsites |
--verbose |
Detailed output. --loglevel still exists but is deprecated |
The Help article's syntax line still shows -v for a Dev Hub and --loglevel. rc.71 has no -v, and its help says to use --verbose.13 Trust the --help of the version you installed. Scoping with --only is for assessing: Salesforce says to migrate every component type together.13 Assess asks questions as it runs (which package, where to put the retrieved Apex, consent to turn on the ExperienceBundle metadata API), and each prompt times out after five minutes.13
The plugin also has sf omnistudio migration clean, which deactivates and deletes the components that stop the Metadata setting from switching on. Its help warns that this is permanent. Run --assess with it first: that only lists what it would remove.
We installed the plugin and read its help, but didn't run it: our lab org has no managed package to migrate.
Test and debug
Run a Data Mapper without a document or a script. The OmniStudio REST endpoint runs a Data Mapper by name. An Extract only reads, so this is safe to point at a real record:
echo '{"Id":"0Q0E2000005u81dKAA"}' > odt-in.json
sf api request rest "/services/data/v66.0/omnistudio/dataraptor/RLMQuoteExtractBasic" \
--method POST --body @odt-in.json --target-org rlm-base__my-lab
On 2026-11-08 this returned the Kingsbridge lab quote as JSON: the billing address, the seller block, and a Line with the QuantumBit Complete Solution and its child lines (API Management, Additional API at 3, API Access Requests at 250, and so on), each with list, net unit and net total prices. Use the Data Mapper's name here, without the version suffix. This is the fastest way to tell a mapping problem from a template problem.
Check what's active after a deploy. Reading the records is fine; it's writing them that Salesforce forbids.
sf data query --target-org <alias> --query "SELECT Name, Type, VersionNumber, IsActive FROM OmniDataTransform ORDER BY Name"
sf data query --target-org <alias> --query "SELECT Type, SubType, Language, VersionNumber, IsActive FROM OmniProcess WHERE IsActive = true ORDER BY Type, SubType"
In our lab org the second query returns the launchpad's three guided selling Omniscripts (QuantumBit/GuidedSelling, GuidedSelling/Wizard and ProductGuidedSelection/Integration, all English, version 1). If the version you deployed isn't the active one, activate it in the designer and run the query again.
Read the retrieve result, not only the status. A retrieve can say it succeeded while a component failed (Watch out).
Preview in the designers. The Omniscript and Integration Procedure designers have their own preview. We didn't exercise them for this page.
Watch out
The member name is the unique name, version suffix included. We asked for OmniDataTransform:RLMQuoteExtractBasic, and the CLI reported the retrieve as Succeeded while its one file failed with "Entity of type 'OmniDataTransform' named 'RLMQuoteExtractBasic' cannot be found". Ask for RLMQuoteExtractBasic_1, and in scripts check each file's state, not the overall status.
Don't fix OmniStudio records with Data Loader, sf data update or Apex DML. Salesforce marks the objects internal-use only. Change the component in the designer or deploy its metadata.
Underscores, spaces and special characters in a Type, SubType or Name keep the Metadata setting off, and turning that setting on is permanent. Rename and update references first; the Migration Assistant's Assess mode lists the offenders.
The Build Tool and DataPacks belong to the managed package runtime. On a standard-runtime org such as a Revenue Cloud launchpad org, use sf project retrieve and deploy. Don't carry an old vlocity job into it.
npm install of the Migration Assistant without a version gets 1.7.0, which has no Assess mode. Install the rc version Salesforce's Help names, and copy flags from its --help, not from an article.
sf omnistudio migration clean deletes records for good. Run it with --assess in a sandbox, read the list, and keep an export of every component first.
A deployed file with isActive or active set to false won't become the running version. Decide per component whether the deploy should activate it, and check afterwards.
Sources
Every numbered note links to the Salesforce page it comes from. We read the Help articles in Chrome and the developer guide pages from Salesforce's Winter '27 (264) copies in the launchpad, on 2026-11-08.
- Salesforce Help: Differences Between Omnistudio and Omnistudio for Managed Packages; Enable Omnistudio Metadata API Support; the Omnistudio Build Tool articles (data deployment, install, project set-up, commands); Install the Omnistudio Migration Assistant; Assess the Migration Readiness in Your Development Sandbox; knowledge article 004259611, read 2026-11-08
- Industries developer guide, Omnistudio Metadata API types:
OmniScript,OmniIntegrationProcedure,OmniDataTransform,OmniStudioSettings,DecisionMatrixDefinition,ExpressionSetDefinition, and theOmniDataTransformandOmniProcessobject pages, Winter '27 (264), read 2026-11-08 - Salesforce Developers Blog, Migrate From Managed Package Runtime to the Omnistudio Standard Runtime (2026-08-14), read 2026-11-08
- The Salesforce CLI 2.157.8 metadata registry, for each type's folder and suffix, and
@salesforce/plugin-omnistudio-migration-tool2.0.0-rc.71--helpfor assess, migrate and clean, read 2026-11-08 - Salesforce's rlm-base-dev launchpad, commit c77e638 (2026-10-08): the scratch org definition and the OmniStudio files it ships, read 2026-11-08
- Our lab org: the retrieves, the metadata list and the Data Mapper run above, 2026-11-08
Salesforce doesn't say in one sentence that an org can't use DataPacks and the Metadata API together. Our "one path per org" rule comes from the two facts above: the Metadata setting covers only the standard objects, and the Build Tool is documented only for the managed package runtime.
-
Differences Between Omnistudio and Omnistudio for Managed Packages ↩
-
Data Deployment with the Omnistudio Build Tool and Install and Update the Omnistudio Build Tool ↩↩↩
-
Build Tool Commands for Deploying Omnistudio Data Between Orgs ↩
-
New OmniScript Version Keeps Same Type and SubType in OmniStudio ↩
-
Assess the Migration Readiness in Your Development Sandbox ↩↩↩
-
Migrate From Managed Package Runtime to the Omnistudio Standard Runtime ↩