You are here:
Deploy Flexcards by Using Omnistudio Build Tool
The Omnistudio Build Tool (formerly Vlocity Build Tool or VBT) is a node.js command-line automation tool that packages and deploys Salesforce data packs in a source-control-friendly format. If Omnistudio is enabled in your Salesforce org, you can use this tool to deploy the Flexcards.
Before You Begin
| REQUIRED EDITIONS |
|---|
| Available in: Lightning Experience |
| Available in: all editions |
| REQUIRED USER PERMISSIONS | |
|---|---|
| To access Media Cloud advanced features: | MediaCloudPlus Runtime |
| To create, read, update, and delete Flexcards: | Omnistudio Admin |
These are the benefits of deploying the Flexcards by using the Omnistudio Build Tool:
- Flexcards are activated automatically after deployment.
- To avoid any potential overrides, the Flexcards are versioned as 252 for the Winter ‘25 release.
- The order of Flexcard attributes is maintained.
-
Authenticate your org by entering this command in Salesforce DX CLI.
See Authentication Methods for the Omnistudio Build Tool.sfdx force:auth:web:login --instanceurl https://<your_org_url> -
To set up the local compile, request a username and password for the private Node Package Manager (NPM) repository.
If you have previously used OmniOut, use the same credentials.If you don’t have credentials, go to https://repo.vlocity.com/repository/vlocity-public/, and request an NPM repository access key from your customer representative by filing a support case for using OmniOut with the subject: Request for Access Key to Vlocity's Private NPM Repository.
-
To add the credentials to the .npmrc file in the user’s home directory, run this command:
npm config set @omnistudio:registry https://repo.vlocity.com/repository/vlocity-public/ -
To log in, run this command, and enter your NPM repository credentials.
npm login --registry=https://repo.vlocity.com/repository/vlocity-public/ -
To install the Flexcard compiler, run this command:
npm install @omnistudio/flexcard-compiler - In your local system, create a folder for Omnistudio Build Tool deployment.
-
Create a YAML file by using this script:
Note This is a sample script. To update the card names in the manifest, use the YAML provided for IDX.
projectPath: vlocity autoRetryErrors: true manifest: - FlexCard/sfiAdsDigitalGrid - FlexCard/sfiAdsGeneratePrintIssueButton -<Similarly_add_all_required_Flexcards_name> npmAuthKey: <PLACE_YOUR_NPM_AUTH_KEY_HERE> npmRepository: 'https://repo.vlocity.com/repository/vlocity-public/' - Move the YAML file to your root folder.
- Download the Omnistudio-enabled Flexcards.
- Extract the ZIP file's contents, and move the FlexCard folder to the vlocity folder under your root folder.
-
To deploy Flexcards, open a command line interface from your root folder path, and run this command:
vlocity -sfdx.username <ORG_USERNAME> -job <YAML_FILE_NAME> packDeploy
