Skip to content

Asset settings

With the modular approach, you can add assets to a module as part of a block. In eWizard Editor, you can add assets to a block from Veeva Vault or eWizard NaviGate. You can also add assets to a component from eWizard Library, Veeva Vault, or upload the assets from your device.

As best practice, add assets to the module in eWizard Editor.

Asset configuration file

When you add the assets in eWizard Editor, this service assigns IDs to each asset. The .ewizard/assets.json file stores the assigned IDs and the asset metadata organized by the asset type: a module and the list of all media assets added within the item.

To view the assets.json file:

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

  2. Download the zipped email project to your computer.

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

Depending on the item type, the assets.json file may have a different structure.

json
// ./.ewizard/assets.json

{
    "app": {
        "assets": [
            {
                "assetId": "o19ynehaws",
                "type": "module",
                "version": "2.0",
                "veevaInfo": {
                    "linkedComponents": []
                },
                "localInfo": {
                    "components": {
                        "6wq4ezvo23": {
                            "props": {
                                "text": {
                                    "vaultId": "",
                                    "defaultValue": "",
                                    "name": "",
                                    "type": "text",
                                    "classification": "",
                                    "hyperlink": "",
                                    "alt": ""
                                }
                            }
                        },
                        "kpvg36hzuo": {
                            "props": {
                                "src": {
                                    "vaultId": "",
                                    "defaultValue": "",
                                    "name": "code-viewport",
                                    "type": "image",
                                    "classification": "",
                                    "hyperlink": "",
                                    "alt": "",
                                    "poster": ""
                                }
                            }
                        },
                        "46duqrixf2": {
                            "props": {
                                "src": {
                                    "vaultId": "",
                                    "defaultValue": "",
                                    "name": "My video",
                                    "type": "video",
                                    "classification": "",
                                    "hyperlink": "",
                                    "alt": "",
                                    "poster": ""
                                }
                            }
                        },
                        "oqu4g4tzk6": {
                            "props": {
                                "text": {
                                    "vaultId": "",
                                    "defaultValue": "",
                                    "name": "",
                                    "type": "text",
                                    "classification": "",
                                    "hyperlink": "",
                                    "alt": ""
                                }
                            }
                        },
                        "zauvomjum4": {
                            "props": {
                                "src": {
                                    "vaultId": "",
                                    "defaultValue": "",
                                    "name": "UFO21",
                                    "type": "image",
                                    "classification": "",
                                    "hyperlink": "",
                                    "alt": "",
                                    "poster": ""
                                }
                            }
                        }
                    }
                },
                "navigateInfo": {
                    "6wq4ezvo23": {
                        "actualType": "text",
                        "data": "<div style=\"line-height:29px;text-align:left;\"><span style=\"color:rgb(0,0,0);font-family:Arial, Helvetica, sans-serif;font-size:29px;\">My module title</span></div>",
                        "classification": "",
                        "hyperlink": "",
                        "alt": ""
                    },
                    "kpvg36hzuo": {
                        "data": "./common/media/images/e95272c0-0bba-11ec-8a48-06c02543afe7.png",
                        "actualType": "image",
                        "classification": "",
                        "hyperlink": "",
                        "alt": "",
                        "poster": ""
                    },
                    "46duqrixf2": {
                        "data": "./common/media/videos/682d1750-38be-11ec-a033-2ab36596d197.mp4",
                        "actualType": "video",
                        "classification": "",
                        "hyperlink": "",
                        "alt": "",
                        "poster": ""
                    },
                    "oqu4g4tzk6": {
                        "actualType": "text",
                        "data": "<div style=\"line-height:20px;text-align:center;\"><span style=\"color:rgb(77,77,77);font-family:Arial, Helvetica, sans-serif;font-size:14px;\">This is my module text</span></div>",
                        "classification": "",
                        "hyperlink": "",
                        "alt": ""
                    },
                    "zauvomjum4": {
                        "data": "./common/media/images/37022210-5d7b-11ec-b91a-85800ef85ec4.png",
                        "actualType": "image",
                        "classification": "",
                        "hyperlink": "",
                        "alt": "",
                        "poster": ""
                    }
                }
            },
            {
                "localInfo": {
                    "encodedPath": "./common/media/images/my-image.png",
                    "path": "./common/media/images/my-image.png"
                },
                "type": "image"
            },
            {
                "localInfo": {
                    "encodedPath": "./common/media/videos/my-video.mp4",
                    "path": "./common/media/videos/my-video.mp4"
                },
                "type": "image"
            },
            {
                "type": "image",
                "localInfo": {
                    "tempPath": "https://ewizard-storage-viseven-eu-1.s3.eu-central-1.amazonaws.com/content-uploader/37022210-5d7b-11ec-b91a-85800ef85ec4.png",
                    "path": "./common/media/images/37022210-5d7b-11ec-b91a-85800ef85ec4.png",
                    "relative": "common/media/images/37022210-5d7b-11ec-b91a-85800ef85ec4.png"
                }
            },
            {
                "localInfo": {
                    "encodedPath": "./common/media/images/default-image.jpg",
                    "path": "./common/media/images/default-image.jpg"
                },
                "type": "image"
            }
        ]
    },
    "$localization": {
        "assets": []
    },
    "$references": {}
}

:::

Don't change anything in the assets.json file to guarantee the module stable behavior in eWizard. Use eWizard Library, NaviGate, or Veeva Vault services to edit the assets metadata.

Fields description

The assets.json file is an object that includes other objects: the modules and the array lists with assets within these modules. In e-Detailers, each slide is a separate object with its assets. The assets that aren't part of a module have their separate objects with metadata.

The assets.json file has the following fields describing the assets structure:


Field                                           
Description
appAn object that includes all assets in the Vue file. This field is the name of the item Vue file: App.vue. For e-Detailers, this field is the same as the slide ID, for example default. Each slide is a separate object with its assets.
assetsAn array list of the assets that includes all information about the assets within the object.

Assets

The project assets are organized by asset type (module, image) and have the following fields:


Field                                           
Description
typeAn asset type, for example module or image.
assetIdThe module ID that's the same as the data-asset-id field of the module block in the template.
veevaInfoAn object that includes all information about the module or asset from Veeva Vault.
localInfoAn object that includes local project information about the module or asset.
versionThe module or asset version. The assets that are part of the module have their own version fields.
navigateInfoAn object that includes all information about the module or asset from eWizard NaviGate.
platformThe module or asset platform: veeva or navigate.

Veeva Vault assets

The veevaInfo object includes information about Veeva Vault assets.


Field                                           
Description
hostThe hosting service of the Veeva Vault user.
idThe module/asset ID assigned in Veeva Vault.
urlThe module/asset URL address in Veeva Vault.
nameThe module/asset meaningful name in Veeva Vault.
documentNumberThe module/asset document number in Veeva Vault.
statusThe module/asset status in Veeva Vault.
countryThe module/asset country or the list of country codes in Veeva Vault.
productThe module product in Veeva Vault.
communicationObjectiveAn array list of communication objectives in Veeva Vault.
targetAudienceAn array list of target audience in Veeva Vault.
adoptionLadderAn array list of the product adoption ladders in Veeva Vault.
expirationDateThe module expiration date in Veeva Vault.
linkedDocumentsAn array list of the linked documents in Veeva Vault.
linkedComponentsAn array list of all module assets that are called linked components in Veeva Vault. The linked components are the same as eWizard components: text, image, or video.
altThe asset alternative text in Veeva Vault.
roleThe asset role in Veeva Vault.
channelThe asset channel in Veeva Vault.
textThe text with the inline HTML style for the text component in Veeva Vault.
fullnameThe asset full name in Veeva Vault. For the video assets, this field is an object that has the source field.
hyperlinkThe asset hyperlink in Veeva Vault.
titleThe asset title in Veeva Vault.
sizesThe asset size in kilobytes (kb) and megabytes (mb).
regionThe asset region in Veeva Vault.
parentProductThe asset parent product in Veeva Vault.
approved_for_distribution_dateThe approved for distribution date of the asset in Veeva Vault.
classificationThe asset classification in Veeva Vault.
created_atThe asset creation timestamp in Veeva Vault.
updated_atThe asset update timestamp in Veeva Vault.
created_byThe asset author ID in Veeva Vault.
posterThe asset poster image.
formatThe asset format for the media assets, for example jpeg.
linksThe API links for downloading the asset and its thumb image from the Content Editor storage service for Veeva Vault. This object includes the thumb, download, and view fields.
rawDocumentAn object for the asset raw formats in Veeva Vault.
actualTypeThe actual asset type in Veeva Vault.
filePathThe media asset relative path to the temporary directory in the project. For video assets, this field is an object with the source and rendition fields.
renditionNameThe asset rendition name in Veeva Vault.
dataThe asset AWS or local storage information.
approvalDocumentThe info about the Veeva Vault approval document.
approvalDocument.idThe ID of the approval document.
approvalDocument.version_idThe Version ID of the approval document.
approvalDocument.channel__cThe channel of the approval document.
approvalDocument.global_id__sysThe combination of the Vault ID and the Document ID of the approval document. For more information, see Global ID fields.
approvalDocument.link__sysUsed to store a value that identifies an approval document’s content. For example, the document’s global_id__sys field value. For more information, see Link Fields.
approvalDocument.name__vThe display name of the approval document. Displayed throughout Veeva Vault.
approvalDocument.status__vThe document Status within it's lifecycle.
approvalDocument.created_by__vThe ID of the user who created the approval document.
approvalDocument.document_creation_date__vThe date and time when the approval document was created.
approvalDocument.file_modified_date__vThe date and time when the approval document was last modified.
approvalDocument.last_modified_by__vThe ID of the user who modified the approval document last.
approvalDocument.lifecycle__vThe name of the document lifecycle to assign to the new document.
approvalDocument.state_stage_id__sysThe Lifecycle State Stage ID of the approval document.
approvalDocument.stage__sysThe Lifecycle Stage of the approval document.
approvalDocument.country__vThe ID of the country in Veeva Vault.
approvalDocument.description__vThe Description of the approval document.
approvalDocument.product__vThe ID of the product in Veeva Vault.
approvalDocument.major_version_number__vThe number of the major version of the approval document. For example, if the Version of the document is 0.1, the major version is 0.
approvalDocument.minor_version_number__vThe number of the minor version of the approval document. For example, if the Version of the document is 0.1, the minor version is 1.
approvalDocument.document_number__vThe document number of the approval document.
approvalDocument.source_content_module__vThe ID of the Source Content Module of the approval document.
approvalDocument.language__vThe Language of the approval document.
approvalDocument.custom_module_name__cThe Custom Module Name of the approval document.
approvalDocument.tags__cThe Tags of the approval document.

Local assets

The localInfo object includes local information about assets and has the following fields:


Field                                           
Description
componentsAn object that includes information about all the components within the module. Each component has its ID object, for example g6mi1vbp82. The same component ID is used for navigateInfo.
propsAn object that includes information about all the properties of each component.
src or textDepending on the asset type, this field is an object that includes all the properties of a text or media asset.
vaultIdThe asset ID in Veeva Vault. It's the same as the asset id field in the linkedComponents array list.
defaultValueThe default value of the component property. For more information, see properties for the specific components, for example wiz-text for e-Detailers.
typeThe asset type, for example text or image.
nameThe asset meaningful name. This value is the same as the name field in the linkedComponents array list.
classificationThe Veeva Vault field. The asset classification in Veeva Vault.
hyperlinkThe Veeva Vault field. The asset hyperlink in Veeva Vault.
altThe Veeva Vault field. The asset alternative text in Veeva Vault.
posterThe Veeva Vault field. The asset poster image.

The navigateInfo object includes information about eWizard NaviGate assets. Each asset has the component ID that's the same as in the localInfo object.


Field                                           
Description
actualTypeThe asset file type such as text, image, or video.
dataThe asset NaviGate storage information.
classificationThe Veeva Vault field. See the veevaInfo fields description.
hyperlinkThe Veeva Vault field. See the veevaInfo fields description.
altThe Veeva Vault field. See the veevaInfo fields description.
posterThe Veeva Vault field. See the veevaInfo fields description.

Media assets

The media assets are listed in the assets.json file as individual objects with the following fields:


Field                                           
Description
typeThe media asset type, for example image.
localInfoAn object that includes local information about media assets.
tempPathA temporary path to the asset AWS storage.
pathAn absolute path to the media asset in the project local directory.
relativeA relative path to the media asset in the project local directory.
encodedPathAn auxiliary path to the media asset in the project local directory.

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.

    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.

    Veeva Vault assets