Skip to content

Vault Toolbox provides a variety of tools to assist with writing custom MDL for your Vault. This guide outlines how to use Vault Toolbox to generate MDL components, extract MDL from Vault, and download a Vault Configuration Report.

Vault Toolbox includes file templates for common MDL scripts to generate components including Vault Objects, JobMetadata, and WebAPI Groups. Learn more about file templates in the IntelliJ IDEA documentation.

To access the MDL file templates, right-click on a parent folder within your project, hover over New, and select one of the available file templates.

IntelliJ Plugin MDL File TemplatesIntelliJ Plugin MDL File Templates

In the dialog, provide a File name and optionally a Name, Label, and Description, then click OK. You may be prompted for additional fields depending on the selected template. For example, if you select the Vault MDL Jobmetadata template, the dialog prompts for a ProcessorName.

Within the parent folder, this action creates a .mdl file with the specified file name. The new file includes the initial formatting necessary for a given statement, pre-populated with the required attributes for a component. For example, selecting the Vault MDL Jobmetadata template produces a file with the required attributes for the Jobmetadata component.

IntelliJ Plugin Custom MDLIntelliJ Plugin Custom MDL

You can download a Vault Configuration Report from using the Vault Toolbox plugin instead of doing so through the Vault UI. Vault Configuration Reports are Microsoft Excel reports that contain configuration information and reference data. This is especially useful for evaluating your Vault's configuration prior to modifying components. Learn more about generating Vault Configuration Reports.

To download a Vault Configuration Report:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Components () and double-click Download Configuration Report ().
Download Vault Configuration ReportDownload Vault Configuration Report

Once the operation is complete, you can access the downloaded Vault Configuration Report from the toolbox/config folder within your project directory. Vault also sends an email notification with a link to download the report ZIP files.

The Vault Toolbox plugin is also capable of extracting component MDL from Vault, allowing you to review the configuration for certain components prior to writing custom MDL.

To extract or refresh MDL from Vault:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Components () and double-click Extract MDL from Vault ().
  4. In the dialog, click Extract. This operation does not delete local components that do not exist in Vault.
  5. Optional: If you've already extracted MDL from your Vault, click Download to refresh all MDL in your project directory. This operation deletes local components that do not exist in Vault.

Once the operation is complete, you can access all component MDL in your Vault from the toolbox/mdl/{vaultid} folder within your project directory.

Vault Toolbox utilizes the RECREATE MDL command to create or alter selected component types in Vault. To deploy MDL components to Vault, right-click on one or more .mdl files in your project directory and select Veeva Vault > Deploy to Vault ().

Dropping MDL Components from Vault

Section link for Dropping MDL Components from Vault

Vault Toolbox utilizes the DROP MDL command to delete selected component types from Vault. To drop MDL components from Vault, right-click on one or more .mdl files in your project directory and select Veeva Vault > Drop from Vault ().