Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
forcedotcom avatar

Deploying Omnistudio Datapacks

  • 509 installs
  • 787 repo stars
  • Updated August 5, 2026
  • forcedotcom/afv-library

This is a copy of deploying-omnistudio-datapacks by forcedotcom - installs and ranking accrue to the original listing.

deploying-omnistudio-datapacks is an agent skill that orchestrates Vlocity Build export, deploy, retry, and validation of Salesforce Industries OmniStudio DataPacks for developers who migrate Vlocity configuration across

About

deploying-omnistudio-datapacks is a Salesforce Industries agent skill (version 1.0) from forcedotcom/afv-library that guides Vlocity Build DataPack workflows end to end. The skill fires when developers run packDeploy, packRetry, packExport, or packGetDiffs, set up DataPack CI/CD pipelines, or debug migration failures. It separates OmniStudio DataPack automation from metadata deploys via sf project deploy and from authoring OmniScripts, FlexCards, or Integration Procedures. Developers reach for deploying-omnistudio-datapacks when Industries assets must export cleanly, deploy with retries, diff before promotion, and pass validation gates without manual CLI guesswork. The skill encodes trigger boundaries so agents route Apex/LWC work and metadata deploys to sibling afv-library skills instead.

  • Automates vlocity packDeploy, packRetry, packContinue, packExport, packGetDiffs and validateLocalData commands
  • Designs and manages DataPack job-files with projectPath, expansionPath, manifest and queries
  • Handles org-to-org DataPack migration with automated retry loops
  • Troubleshoots dependency, matching-key and GlobalKey errors systematically
  • Enables repeatable CI/CD sequencing for OmniStudio DataPacks

Deploying Omnistudio Datapacks by the numbers

  • 509 all-time installs (skills.sh)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/forcedotcom/afv-library --skill deploying-omnistudio-datapacks

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs509
repo stars787
Last updatedAugust 5, 2026
Repositoryforcedotcom/afv-library

How do you automate OmniStudio DataPack CI/CD deploys?

Orchestrate reliable export, deploy, retry, and validation of OmniStudio/Vlocity DataPacks using the Vlocity Build tool.

Who is it for?

Salesforce Industries engineers operating Vlocity Build pipelines who promote OmniStudio DataPacks across sandboxes and production.

Skip if: Developers deploying standard Salesforce metadata with sf project deploy or authoring OmniScripts, FlexCards, and Integration Procedures from scratch.

When should I use this skill?

User mentions packDeploy, packRetry, packExport, packGetDiffs, DataPack CI/CD, or OmniStudio/Vlocity migration errors.

What you get

Validated DataPack exports, deployment logs, retry plans, and pre-promotion diffs for OmniStudio/Vlocity assets.

  • Deployed DataPacks
  • Export artifacts
  • Pre-deploy diff reports

By the numbers

  • Documents four Vlocity Build commands: packDeploy, packRetry, packExport, and packGetDiffs
  • Skill metadata version 1.0 in forcedotcom/afv-library

Files

SKILL.mdMarkdownGitHub ↗

deploying-omnistudio-datapacks: 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 deploying-omnistudio-datapacks 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:

  • deploying standard metadata with sf project deploy -> deploying-metadata
  • building OmniScripts, FlexCards, IPs, or Data Mappers -> building-omnistudio-*
  • designing Product2 EPC bundles -> modeling-omnistudio-epc-catalog
  • writing Apex/LWC code -> generating-apex, generating-lwc-components

---

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 / symptomLikely causeDefault fix direction
No match found for ...missing dependency in target orginclude missing DataPack key and redeploy
Duplicate Results found for ... GlobalKeyduplicate records in targetclean duplicates and re-run deploy
Multiple Imported Records ... same Salesforce Recordsource duplicate matching-key recordsremove duplicates in source and re-export
No Configuration Foundoutdated DataPack settingsrun packUpdateSettings or enable autoUpdateSettings
Some records were not processedsettings mismatch / partial dependency staterefresh settings both orgs, then retry
SASS / template compile failuresmissing referenced UI template assetsexport/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

NeedDelegate toReason
metadata deploy outside DataPacksdeploying-metadataMetadata API workflows
OmniStudio component authoringbuilding-omnistudio-*build artifacts before deploy
EPC product and offer payload authoringmodeling-omnistudio-epc-catalogProduct2/DataPack model quality
Apex trigger/log error diagnosisdebugging-apex-logs, generating-apexautomation-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

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

Related skills

How it compares

Pick deploying-omnistudio-datapacks for Vlocity Build DataPack CI/CD; use deploying-metadata for standard Salesforce metadata deploys.

FAQ

What Vlocity Build commands does deploying-omnistudio-datapacks cover?

deploying-omnistudio-datapacks covers Vlocity Build packDeploy, packRetry, packExport, and packGetDiffs for OmniStudio and Vlocity DataPacks. The skill sequences export, deploy, retry, and validation steps and separates DataPack work from sf project deploy metadata flows.

When should I use deploying-omnistudio-datapacks instead of deploying-metadata?

deploying-omnistudio-datapacks applies when moving Industries OmniStudio or Vlocity DataPacks with Vlocity Build commands. Use deploying-metadata when pushing standard Salesforce metadata through sf project deploy rather than packaged Industries configuration.

DevOps & CI/CDdevopsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.