Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ar-srinivas opened this issue Jan 8, 2024 · 4 comments

Comments

@ar-srinivas
Copy link

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?

@pawel-id
Copy link

pawel-id commented Jan 9, 2024

vlocity packGetAllAvailableExports --nojob

see readme

@ar-srinivas
Copy link
Author

@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)

@AllanOricil
Copy link
Contributor

AllanOricil commented Jan 16, 2024

@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

@tiagonnascimento
Copy link

tiagonnascimento commented Dec 3, 2024

I wrote a Node.js script to do that. This script will write multiple manifest files, segregated by datapack types in a pre-established sequence/order.

It's here: https://gist.github.com/tiagonnascimento/8de90c50cbdbf83af2e34caa80eaee78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants