For the managed package runtime, if you use OmniOut, follow these instructions.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
To retrieve the Omniscripts that are part of the OmniOut deployment, run this command:
vlocity -propertyfile <filepath> -job <filepath> runJavaScript -js omniOutRetrieve.js
Retrieved files are exported into the folder OmniOut/scripts in your project.
For LWC Omniscripts, define a job file with the query.
projectPath: ./
queries:
- VlocityDataPackType: OmniScript
query: Select Id, %vlocity_namespace%__Type__c, %vlocity_namespace%__SubType__c, %vlocity_namespace%__Language__c from %vlocity_namespace%__OmniScript__c where %vlocity_namespace%__IsActive__c = true AND %vlocity_namespace%__IsProcedure__c = false AND %vlocity_namespace%__Type__c = 'lwc' AND %vlocity_namespace%__SubType__c in ('oplOmni', 'typeaheadExample')
Then run this command:
vlocity -propertyfile <filepath> -job <filepath> runJavaScript -js lwcOmniOutRetrieve.js