vlocode icon indicating copy to clipboard operation
vlocode copied to clipboard

OmniStudio Compatibility

Open bensezio opened this issue 2 years ago • 8 comments

Is it possible to make this work for the Omnistudio namespace? What are the possible configuration options to make this happen?

Many thanks.

bensezio avatar Nov 22 '22 12:11 bensezio

I think it should be. I don't have a test environment with the Omnistudio package to test yet but the extension was written keeping support for Vlocity packages with different namespaces in mind.

Right now I think there is one check that queries the installed packages and looks for a package with Vlocity in the name that might be blocking this.

What is the developer name of the Omnistudio package?

Codeneos avatar Nov 23 '22 19:11 Codeneos

G'day @Codeneos you can now (at your leisure) signup for a Developer edition with Omnistudio here: https://trailhead.salesforce.com/promo/orgs/omnistudiotrails

By developer name do you mean Publisher? It's "Salesforce" in my Org.

One new thing to note, there is now a Omni Interaction Configuration Setting where the namespace of the Industry package is automatically added.

This is the error received when attempting to deploy a DR today: [VlocodeService] [error] Error: No such object with name %vlocity_namespace%__DRMatchingKey__mdt exists in this Salesforce instance

Please lmk if you need any assistance troubleshooting etc as I really appreciate your work on this plugin.

wwwmonkey avatar Mar 02 '23 05:03 wwwmonkey

@wwwmonkey thanks for info! I'll have a look into this. The new setting that you pointed out will be useful as a fallback to detect to get the namespace.

Once I have some more details I will get back and try to update the plugin so it is also compatible with OmniStudio.

Codeneos avatar Mar 10 '23 10:03 Codeneos

Hello @Codeneos Has this been resolved? I was trying to use the Vlocity extension on VSCode but I am having the same error. I cannot connect to the org that I am using. And the org has "omnistudio" package namespace installed.

iamlesterjoseph avatar Nov 20 '23 01:11 iamlesterjoseph

No not yet, but I am working on updating Vlocode to support OmniStudio.

I am aiming to have a beta version out by end of this week depending on how much time I get to work on this.

image

There is a new branch that holds some basic changes to make it work, if you are up for it you can compile your own version of the extension from that branch: feature/omnistudio-support.

Codeneos avatar Nov 20 '23 19:11 Codeneos

this is the YAML we had to build to get vlocity components within omnistudio namespace

projectPath: ./vlocity-tmp queries: # Queries to get vlocity datapacks

  • VlocityDataPackType: OmniScript query: Select Id,Type,SubType,Language,OmniProcessType,Description,VersionNumber,IsActive from OmniProcess Where OmniProcessType ='OmniScript' and IsActive = true and Type='' AND SubType ='' manifestOnly: true activate: true maxDepth: -1 defaultMaxParallel: 100 gitCheck: true # Git Hash of previous deployment stored in Setup-->Custom Settings-->General Settings delete: true # Delete the VlocityDataPack__c file on finish autoUpdateSettings: true

Below is the error received while trying to connect to omnistudio namespace: image

mskksfdc avatar Mar 07 '24 06:03 mskksfdc

@Codeneos is this fixed ? Does Vlocode now supports Omnistudio ? Because I am getting same errors.

hassanahmed0071 avatar Aug 14 '24 16:08 hassanahmed0071

@hassanahmed0071 no, not yet - as I'm personally not yet using OmniStudio I haven't been able to put in the work to make it compatible. There is a test branch but that only has limited support at the moment.

I do intend to add full support for OmniStudio and have and now also have a test org OmniStudio enabled.

Codeneos avatar Aug 15 '24 08:08 Codeneos