OmniStudio DataPack Deployment

VerifiedCaution

Automate Salesforce OmniStudio DataPack deployment using Vlocity Build commands: packDeploy, packRetry, packExport, and more.

Sby Skills Guide Bot
DevOpsAdvanced
8/29/2026
Claude CodeCursorCodex
#salesforce#vlocity-datapacks#omnistudio#deployment#ci-cd

Recommended for

Automated summary

Guides Salesforce Industries/OmniStudio DataPack deployments through the Vlocity Build CLI, from local validation to retry loops and cross-org parity checks.

Strengths

  • Lays out the full validateLocalData → packExport → packDeploy → packRetry → packGetDiffs sequence with the correct CLI flags.
  • Helps design job files (projectPath, expansionPath, manifest, queries) and pick the right deployment scope (full project, manifest subset, or -key).
  • Covers triage of dependency, matching-key, and GlobalKey errors, including when to keep retrying versus stop.
  • Explicitly hands off to sibling skills (sf metadata deploy, OmniStudio builders, Apex/LWC) so tooling doesn't get mixed.

Limitations

  • Assumes the vlocity CLI is already installed and both source and target orgs are authenticated through the Salesforce CLI.
  • The Gotchas table in the supplied file is cut off, so detailed error remediation is only partially documented.
  • Does not cover standard metadata deployment or the authoring of the OmniStudio artifacts themselves.
When to use it

Reach for it whenever you need to export, validate, deploy, or resume OmniStudio/Vlocity DataPacks, or set up a DataPack CI/CD pipeline.

When not to use it

Skip it when deploying standard Salesforce metadata with sf project deploy, building OmniScripts/FlexCards, or writing Apex/LWC business logic.

Security analysis

Caution
Quality score90/100

The skill uses network-based Salesforce CLI and npm commands for legitimate DataPack deployment automation. No destructive or exfiltrating actions are present, but the commands have significant external impact and require careful target org selection.

Findings
  • •Instructs global npm install of vlocity CLI, which modifies the execution environment.
  • •Executes Salesforce CLI authentication and deployment commands that can affect target orgs, including production if aliases are misconfigured.
  • •Uses `--fixLocalGlobalKeys` option, which can alter data integrity across orgs if misused.
How this analysis is made

Examples

Export, validate, deploy, retry
Exporte les DataPacks du projet ./vlocity depuis mon alias sandbox-source, lance validateLocalData, puis déploie vers uat-target avec packDeploy et relance packRetry jusqu'à ce que le nombre d'erreurs ne baisse plus.
Manifest-scoped job file
Crée un job-file vlocity qui déploie uniquement les OmniScripts et Data Mappers listés dans manifest.json, avec les bons projectPath, expansionPath et queries.
DataPack migration triage
Mon packDeploy échoue avec des erreurs de GlobalKey et de matching key entre deux orgs OmniStudio — aide-moi à identifier la cause et à relancer proprement avec packRetry.

name: omnistudio-datapacks-deploy description: "Salesforce Industries DataPack deployment automation using Vlocity Build. TRIGGER when: user deploys or validates OmniStudio/Vlocity DataPacks with vlocity commands (packDeploy/packRetry/packExport/packGetDiffs), sets up DataPack CI/CD pipelines, or troubleshoots DataPack migration errors. DO NOT TRIGGER when: deploying Salesforce metadata with sf project deploy (use platform-metadata-deploy), authoring OmniStudio artifacts (use omnistudio-*-build), or writing Apex/LWC business logic (use platform-apex-generate/experience-lwc-generate)." metadata: version: "1.0"

omnistudio-datapacks-deploy: Vlocity Build DataPack Deployment

Use this skill when the user needs Vlocity DataPack deployment orchestration: export/deploy workflow, manifest-driven deploys, failure triage, and CI/CD sequencing for OmniStudio/Industries DataPacks.


Scope

Use omnistudio-datapacks-deploy when work involves:

  • vlocity packDeploy, packRetry, packContinue, packExport, packGetDiffs, validateLocalData
  • DataPack job-file design (projectPath, expansionPath, manifest, queries)
  • org-to-org DataPack migration and retry loops
  • troubleshooting DataPack dependency, matching-key, and GlobalKey issues

Delegate elsewhere when the user is:


Critical Operating Rules

  • Use Vlocity Build (vlocity) commands for DataPacks, not sf project deploy.
  • Prefer Salesforce CLI auth integration (-sfdx.username <alias>) over username/password files when available.
  • Always run a pre-deploy quality gate before full deploy:
    1. validateLocalData
    2. optional packGetDiffs
    3. then packDeploy
  • Use packRetry repeatedly when error counts are dropping; stop when retries no longer improve results.
  • Keep matching-key strategy and GlobalKey integrity consistent across source and target orgs.

Required Context to Gather First

Ask for or infer:

  • source org and target org aliases
  • job file path and DataPack project path
  • deployment scope (full project, manifest subset, or specific -key)
  • whether this is export, deploy, retry, continue, or diff-only
  • namespace model (%vlocity_namespace%, vlocity_cmt, or core)
  • known constraints (new sandbox bootstrap, trigger behavior, matching key customizations)

Preflight checks:

vlocity help
sf org list
sf org display --target-org <alias> --json
test -f <job-file>.yaml

Recommended Workflow

1. Ensure tool readiness

npm install --global vlocity
vlocity help

2. Validate project data locally

vlocity -sfdx.username <source-alias> -job <job-file>.yaml validateLocalData

Use --fixLocalGlobalKeys only when explicitly requested and after explaining impact.

3. Export from source (when needed)

vlocity -sfdx.username <source-alias> -job <job-file>.yaml packExport
vlocity -sfdx.username <source-alias> -job <job-file>.yaml packRetry

4. Deploy to target

vlocity -sfdx.username <target-alias> -job <job-file>.yaml packDeploy
vlocity -sfdx.username <target-alias> -job <job-file>.yaml packRetry

5. Continue interrupted jobs

vlocity -sfdx.username <target-alias> -job <job-file>.yaml packContinue

6. Verify post-deploy parity

vlocity -sfdx.username <target-alias> -job <job-file>.yaml packGetDiffs

Job-file starter: references/job-file-template.md


Gotchas

| Error / symptom | Likely cause | Default fix direction | |---|---|---| | No match found for ... | missing dependency in target org | include missing DataPack key and redeploy | | Duplicate Results found for ... GlobalKey | duplicate records in target | clean duplicates and re-run deploy | | Multiple Imported Records ... same Salesforce Record | source duplicate matching-key records | remove duplicates in source and re-export | | No Configuration Found | outdated DataPack settings | run packUpdateSettings or enable autoUpdateSettings | | Some records were not processed | settings mismatch / partial dependency state | refresh settings both orgs, then retry | | SASS / template compile failures | missing referenced UI template assets | export/deploy referenced template dependencies first |

Detailed matrix: references/troubleshooting-matrix.md


CI/CD Guidance

Default pipeline shape:

  1. authenticate orgs (sf org login ...)
  2. validate local DataPack integrity (validateLocalData)
  3. export changed scope (packExport or manifest-driven export)
  4. deploy (packDeploy)
  5. retry loop (packRetry) until stable
  6. compare (packGetDiffs) and publish deployment report

For incremental deploy optimization, use job-file options such as:

  • gitCheck: true
  • gitCheckKey: <folder>
  • manifest for deterministic scope control

Cross-Skill Integration

| Need | Delegate to | Reason | |---|---|---| | metadata deploy outside DataPacks | platform-metadata-deploy | Metadata API workflows | | OmniStudio component authoring | omnistudio-*-build | build artifacts before deploy | | EPC product and offer payload authoring | omnistudio-epc-catalog-generate | Product2/DataPack model quality | | Apex trigger/log error diagnosis | platform-apex-logs-debug, platform-apex-generate | automation-side root-cause fixes |


Output Expectations

After completing a DataPack operation, deliver a completion block:

DataPack goal: <export / deploy / retry / diff / ci-cd>
Source org: <alias or N/A>
Target org: <alias or N/A>
Scope: <job file + manifest/key/full>
Result: <passed / failed / partial>
Key findings: <errors, dependencies, retries, diffs>
Next step: <safe follow-up action>

Reference File Index

| File | When to read | |------|-------------| | references/job-file-template.md | Before advising on job file structure — load as baseline configuration reference | | references/troubleshooting-matrix.md | When user reports deploy failures — load to diagnose DataPack errors and apply fix directions | | examples/business-internet-plus-bundle/TRANSCRIPT.md | Example of validation planning and execution for a Product2 bundle | | examples/business-internet-plus-bundle/deploy-business-internet-plus-bundle.yaml | Example job file for scope-limited validateLocalData run | | examples/business-internet-plus-bundle-deploy/TRANSCRIPT.md | Example of full deploy cycle including packDeploy and packRetry outcomes | | examples/business-internet-plus-bundle-deploy/deploy-business-internet-plus-bundle.yaml | Example job file for staged deployment with manifest targeting |

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/omnistudio-datapack-deployment-mte1lh1h/download' --output '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md.part' && mv '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md.part' '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && test -s '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/omnistudio-datapacks-deploy' && cp -R '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h' '.claude/skills/omnistudio-datapacks-deploy'

Cursor
test -f '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && test -s '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/omnistudio-datapacks-deploy' && cp -R '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h' '.cursor/skills/omnistudio-datapacks-deploy'

Codex
test -f '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && test -s '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/omnistudio-datapacks-deploy' && cp -R '.skill-downloads/omnistudio-datapack-deployment-mte1lh1h' '.agents/skills/omnistudio-datapacks-deploy'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/omnistudio-datapack-deployment-mte1lh1h'

openskills read 'omnistudio-datapack-deployment-mte1lh1h'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/omnistudio-datapack-deployment-mte1lh1h/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills