vlocityinc/vlocity_build

How can we create a manifest/job file(yaml) file using vlocity CLI with available datapackbs from repository?

ar-srinivas opened this issue · 3 comments

How can we create a manifest/job file(yaml) file using vlocity CLI with available datapackbs from repository?

If the Vlocity CLI doesn't support this, do we have any alternative?

vlocity packGetAllAvailableExports --nojob

see readme

@pawel-id thank you for the response!

When we run this command, we are getting the below error. Looks like it is trying to query on salesforce but our context doesn't have a salesforce org, we are trying to create the manifest from the available datapacks in a folder(version control).

VlocityDataPackType >> VqResource
Query >> Select Id, Name,CreatedBy.Name, CreatedDate, LastModifiedBy.Name, LastModifiedDate FROM undefinedVqResource__c
Query Error >> Error: Invalid URI "/services/data/v54.0/query?q=Select%20Id%2C%20Name%2CCreatedBy.Name%2C%20CreatedDate%2C%20LastModifiedBy.Name%2C%20LastModifiedDate%20FROM%20undefinedVqResource__c"
at Request.init (/usr/local/lib/node_modules/vlocity/node_modules/request/request.js:273:31)

@pawel-id thank you for the response!

When we run this command, we are getting the below error. Looks like it is trying to query on salesforce but our context doesn't have a salesforce org, we are trying to create the manifest from the available datapacks in a folder(version control).

VlocityDataPackType >> VqResource Query >> Select Id, Name,CreatedBy.Name, CreatedDate, LastModifiedBy.Name, LastModifiedDate FROM undefinedVqResource__c Query Error >> Error: Invalid URI "/services/data/v54.0/query?q=Select%20Id%2C%20Name%2CCreatedBy.Name%2C%20CreatedDate%2C%20LastModifiedBy.Name%2C%20LastModifiedDate%20FROM%20undefinedVqResource__c" at Request.init (/usr/local/lib/node_modules/vlocity/node_modules/request/request.js:273:31)

@ar-srinivas you have to do a local diff instead of org diff. With local diff those queries won't run. I just don't remember how to do it.

obs: it probably won't work because this cli log in into an org at the start of the flow, instead of doing it only if diffs exist. This means you must have an org, even if you are not using it. See this issue #588