For the managed package runtime, host Vlocity Templates on external servers.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Set up the Vlocity Build tools.
- Create your Vlocity Templates in a Salesforce org.
-
Extract the Vlocity Templates from Salesforce by setting up a job to point at the required resources. Look at the examples posted in the Vlocity Build Tools step-by-step guide.
Use prefixes, as shown in the following query to get the templates from the org and make sure they are active:
queries: - VlocityDataPackType: VlocityUITemplate Select Id, Name from %vlocity_namespace%__VlocityUITemplate__c where Name LIKE 'card-out-%' AND %vlocity_namespace%__Active__c = true -
At a command prompt, run:
vlocity packExport -propertyfile build.properties -job dataPacksJobs/job-name.yamlThe templates you queried appear in the expansionPath folder in the DataPack.
-
If you need to make changes to the templates:
-
Edit the templates using your favorite IDE and store them in source control.
-
Run the packBuildFile job to compress the resources to a DataPack that will be stored in the buildFile directory.
-
- Upload the DataPack to your desired location.
- Use the configService.loadCardframeworkDefinitions function to load your DataPack into the Cards Framework.