Skip to main content
All CollectionseWizard.js frameworkEmails
Publish settings for emails from Veeva Vault
Publish settings for emails from Veeva Vault

Read where the Veeva Vault metadata is stored in an email template

eWizard Team avatar
Written by eWizard Team
Updated over a year ago

When you publish your email to Veeva Vault, eWizard.js adds the assets.json file to the email project. This file contains the configuration of the Veeva Vault module assets. You can insert the modules with assets from Veeva Vault in eWizard Editor.

To view the assets.json file:

1) Add the Veeva Vault assets to your email in eWizard Editor.

2) Download the zipped email project to your computer.

3) Open the ./.ewizard/assets.json file.

The Veeva Vault module and asset information has the following format.

{
"app": {
"assets": [
{
"type": "module",
"assetId": "{moduleAssetId}",
"veevaInfo": {
"host": "{hostAddress}",
"id": "{moduleId}",
"url": "{moduleUrl}",
"name": "{moduleName}",
"documentNumber": "",
"version": "",
"status": "active__v",
"country": "Global",
"product": "",
"communicationObjective": [],
"targetAudience": [],
"adoptionLadder": [],
"expirationDate": "",
"linkedDocuments": [],
"linkedComponents": [
{
"id": 6577,
"filename": "photos.png",
"documentNumber": "",
"classification": "",
"data": "{data}",
"type": "image",
"url": ""
}
]
},
"localInfo": {
"components": {
"mxhw98job5": {
"props": {
"src": {
"vaultId": 6577,
"defaultValue": "/editor/api/v1/static/2f6fd678-707a-48ef-8b44-e08d8e5aeeb7/themes/Viseven/media/images/logo-white.png",
"type": "image"
}
}
}
}
},
"version": "2.0"
},
]
},
"$localization": { "assets": [] },
"$references": {}
}

where

type is the Veeva Vault asset type.

assetId is the Veeva Vault module asset ID. For example: fee6801a183ba297d0ab.

host is the Veeva Vault host site address. For example: vvtechpartner-viseven01.veevavault.com.

id is the Veeva Vault module ID. For example: V3P000000001001.

url is the Veeva Vault URL address. For example: https://vvtechpartner-viseven01.veevavault.com/ui/#doc_info/V3P000000001001.

name is the Veeva Vault module name. For example: CM-000001.

The linkedComponents array includes the component assets information linked to the Veeva Vault module.

type is the component asset type.

id is the component ID in Veeva Vault.

filename is the component filename.

data field can have different values depending on the component type:

  • For images: data is the AWS S3 bucket URL address where the asset file is stored.

  • For text: data is the actual text message.

  • For HTML: data is the HTML markup.

url is the Veeva Vault asset URL address. For example: https://vvtechpartner-viseven01.veevavault.com/ui/#doc_info/6577.

The localInfo objects include the eWizard Editor information about the asset components and their props:

vaultId matches the Veeva Vault component ID.

defaultValue is the eWizard Editor corresponds to the data field in Veeva Vault. Its value depends on the component type:

  • For images: defaultValue is the static API URL address of the image in the eWizard platform.

  • For text: defaultValue is the HTML markup in the email template.

version is the Veeva Vault module API version.

Check Veeva Vault information in eWizard Editor

When you add modules from Veeva Vault to the email in eWizard Editor, you can view information about the module assets in your browser console.

1) Add the Veeva Vault modules in eWizard Editor Edit mode using the BROWSE button in the Properties tab.


NOTE: You must sign in to Veeva Vault to add the modules with assets.


2) Open the browser console. In Chrome, press F12 and go to the Console tab.

3) Enter co.store.state.content.app.assets and press Enter.

4) Check the module assets information from Veeva Vault.

Did this answer your question?