Integrating Vault CRM and PromoMats / MedComms for Approved Email
Approved Email requires an integration with PromoMats / MedComms in order to deliver approved content to end users.
The Approved Email Administration Tab manages this integration and enables admins to manage the integration user, manage and validate credentials, and map PromoMats / MedComms fields.
API requests sent from Vault CRM are monitored and limited to avoid interrupting integrations. Multichannel functionalities relying on the integration between Vault CRM and PromoMats / MedComms, including Approved Email, CLM, and Engage, send API requests and should not hit API limits.

The Vault Login Credential Management section manages the PromoMats / MedComms credentials for integration with Vault CRM. Users can connect to multiple instances, with each line representing a single instance from which the integration pulls PromoMats / MedComms Document metadata into the approved_document__v object in Vault CRM.
Admin users must supply a username and password for each PromoMats / MedComms instance, and this user must have the User Type of System Admin. Select Validate next to the credentials to confirm their authentication and create a connection to PromoMats / MedComms.
The PromoMats / MedComms integration user must be assigned to a Vault Security Policy (Users > Settings > Security Policy) that has a Password Expiration value of No Expiration. If the password ever expires, the integration will fail. Ensure that the Vault Integration User has access to Events API in Vault.
The Vault URL endpoints and optional Vault WHERE clause display in this section.
The authentication credentials are used for several Approved Email integration processes. All actions are fully audited in the activity logs.
- Query Vault during the Incremental Refresh of metadata into the approved_document__v object
- Query Vault during the Full Refresh of metadata into the approved_document__v object
- Query Vault to validate outbound Email Templates, Email Fragments and all referenced PromoMats / MedComms documents are in an approved or steady state prior to sending an email
- Query Vault to pull PromoMats / MedComms document events (views and downloads by email recipients) into the email_activity__v object
- Write events related to the Incremental Refresh and Full Refresh processes back to the activity log. This provides an audit trail within PromoMats / MedComms that lists all orgs that reference each Email Template or Email Fragment

The Veeva Approved Email Credential Management section enables admins to define an integration user whose credentials are used to integrate with PromoMats / MedComms.
To define the integration user:
- Select Edit under the Vault Login Credential Management section of the Approved Email Administration tab.
- Enter the credentials for the integration user account.
- Indicate whether the account is a sandbox.
- Select Save.
- Select Full Force Refresh to retrieve documents from PromoMats / MedComms.
- Select Pull Vault Statistics to retrieve Document Views and Downloads from PromoMats / MedComms.

Users can map custom fields and VOF (Vault Object Framework) records to Vault CRM fields using the Vault CRM - PromoMats / MedComms Integration. An example would be mapping a custom field on an Email Template in PromoMats / MedComms to a custom text field on Approved Document records in Vault CRM.
Custom mapping is available by default if the integration is configured. Integration users can access the Field Mapping page for each PromoMats / MedComms instance by selecting View Map under the Vault Login Credentials section of the Approved Email Administration page. The standard Approved Email fields and optional field mappings display for the Email Template and the Email Fragment.
Integration users can edit optional field mappings by selecting Edit Mapping on this page. A dropdown displays under the Vault Field Name column in the Optional Approved Email Fields section that contains a list of available PromoMats / MedComms Field names.
Selecting Do not map from the drop-down prevents the PromoMats / MedComms field values from populating into Vault CRM. This should be used when a mapping is no longer relevant to the integration but the fields are still accessible in PromoMats / MedComms and Vault CRM. After selecting the desired PromoMats / MedComms Field names to map to the Vault CRM fields, users should select Save Mapping.

To more efficiently define PromoMats / MedComms Endpoints and Where Clauses, integration users can manage the information on the Approved Email Admin page. Previously, this information was defined using Veeva Messages referenced in Approved Email Custom Settings.
Admins do not need to make any changes to enable the migration from Veeva Messages to PromoMats / MedComms Endpoints and Where Clauses. Once a Vault has been upgraded to the latest version of Vault CRM and either an initial process schedule has run or an Admin runs an incremental/full force refresh, the migration takes place automatically if the Vault CRM integration user's credentials are valid. After the migration, the Veeva Messages are no longer used for Approved Email Custom Settings.
To define Endpoints and Where Clauses:
- Access the Approved Email Admin page.
- Navigate to the Vault Login Credential Management section.
-
Select New to add an Endpoint.
-
Define the Vault DNS, the user name, the password, and the Where clause, if any.
Users cannot use the status__v PromoMats / MedComms field in the Where clause because status is already filtered by default. Users are already prevented from sending emails that are not in an Approved State, so it is not necessary to create a Where clause for this purpose.
- Select Save. The user name and endpoint display on the user page.
- Select Validate to confirm the credentials have been established.
To remove an Endpoint, select the Delete link next to the vault you want to remove.

The Refresh Administration section is used to pull content from PromoMats / MedComms into Vault CRM. The content on this object is synced from PromoMats / MedComms using the following refresh processes:
- Incremental Refresh - Pulls documents modified since the last refresh from PromoMats / MedComms into Vault CRM. This is the same process executed by the scheduled task in the Multichannel Scheduler. It should be used when documents in PromoMats / MedComms are in a steady state (i.e., Approved)
- Force Full Refresh - Pulls all documents from PromoMats / MedComms into Vault CRM. This is typically used in the early stages of implementation or for troubleshooting
This section displays the success and failure of the last 10 refresh processes.
If any sync error or failure occurs, the refresh process is stopped from completing successfully. Content is not fully updated in Vault CRM until all sync errors are resolved.

The Vault Statistics Management section allows users to pull email activity records from PromoMats / MedComms into Vault CRM. PromoMats / MedComms is the system of record for email activities such as opens, views, click throughs, and downloads for all PromoMats / MedComms documents referenced within Email Templates and Email Fragments.
For example, when an email recipient selects the Download action on the viewer or an external link, PromoMats / MedComms captures the activity. After syncing from PromoMats / MedComms, these activity statistics are inserted into the email_activity__v object in Vault CRM.
To run the process, select Pull Vault Statistics.
Only click events and the target URL of the click-through are captured for links that point to documents hosted outside of PromoMats / MedComms

Selecting View Email Engine Status opens an external page that displays the current status of the Mailgun engine and any incidents reported.
See Setting up a Sending Domain for more information on managing the Email Engine.

Customers must create Domain Name Status (DNS) records, for the email domain they use to send Approved Emails. The Email Domain Status section enables Admins to easily check if DNS entries are set up.
For example, Amy Brown notices an email is in Sent status for an unusual amount of time. She consults the Email Domain Status section of the Approved Email Administration tab and notes the DNS record for the email domain has not been created.

Some customers require emails to be processed more frequently. A setting allows Scheduled emails to be processed every 10 minutes.
This option is only available to the production environment, not sandbox environments.
Configuration
- Navigate to the Approved Email Administration page.
- Select the Enable Scheduled Email Processor check box.
If the check box is selected and the Veeva Process Scheduler is configured for Approved Email, the Scheduler processes all sent email records in the Scheduled status every 10 minutes. The frequency of this job is not configurable.
A row does not display in the Approved Email Administration page after this job completes.

Users can map custom fields and Vault Object Framework (VOF) records to Vault CRM fields using the Approved Email - PromoMats / MedComms Integration. For example, mapping a custom field on an Email Template in PromoMats / MedComms to a custom text field on Approved Document records in Vault CRM.
Configuration
To map PromoMats / MedComms fields to Vault CRM:
- Navigate to the Product Catalog in Vault: Business Admin > Products.
- For each product in the Vault Product Catalog, populate an External Id corresponding to what you populated in the Vault CRM app for that specific product. This will be used to specify the Product references on the Approved Documents refreshed from PromoMats / MedComms.
This custom mapping is available by default if the integration is configured. When integration administrators open the Field Mapping page, which is available for each PromoMats / MedComms instance connected to the CRM Vault, as a link - 'View Mapping' in the Approved Email Administration page, a new Edit Mapping action displays. Selecting the action opens the Field Mapping in edit mode. In edit mode, mappings can be updated by making a selection from the Vault Field Name drop down, and selecting Save Mapping. You need to review and save eligible mappings to ensure they are correct.
Select the desired PromoMats / MedComms Field Name you want to map to the Vault CRM field. By default, the integration maps fields between Vault CRM and PromoMats / MedComms that have matching case insensitive Field names (i.e. franchise__c and Franchise__c). Select “do not map” if the Field names match between the PromoMats / MedComms and Vault CRM fields but you do not want values from the PromoMats / MedComms field to be pulled into Vault CRM. “Do not map” should be used when a mapping is no longer relevant to the integration but the fields are still accessible in PromoMats / MedComms and Vault CRM. Select the blank entry if you do not want to make any other selection.

Admin users should schedule the incremental refresh process and other Approved Email processes to execute at least once a day. To schedule these processes, navigate to the Veeva Process Scheduler and select Run next to Approved Email Processes. This initiates the following processes:
- Pull Vault Statistics – Displays the email actions (such as views and downloads) of PromoMats / MedComms documents referenced in Approved Emails. This process inserts the activity records into the email_activity__v object
-
Retry Email Send – Retries sending email that is not sent. This is typically because of a failed connection to the email engine. Unsent emails in the sent_email__v object are placed into Saved status.
If any associated Related ISI, PI, Piece or other document in a sent email's Email Template or Email Fragments are not in a steady state in PromoMats / MedComms, the email is not sent and the status_details__v field stamps with the information needed to address the issue. Every time the job runs for the next four days, the job attempts to resend these emails. After four days of unsuccessful trying, the status sets to Failed and no further attempts are made.
- Retry Inserting Email Engine Activities – Retries inserting any email activity into the email_activity__v object
- Fetch Approved Document Changes – Uses the incremental refresh process to send any PromoMats / MedComms Document metadata changes that have not synced to Vault CRM
See Process Scheduler for more information.