Skip to content
ToolShedby Wasim Shaikh

Veeva CLM HTML5 Package Structure & JS API Guide (PromoMats & Vault CRM)

Wasim · 27 Nov 2026

Building interactive HTML5 presentations for Veeva CRM CLM (Closed Loop Marketing) has a unique constraint: every slide must be packaged as a self-contained .zip archive, uploaded to Veeva Vault PromoMats (or Multichannel Loader), and rendered offline inside an iPad WebView.

A single nested folder, broken relative path, or external CDN URL can cause PromoMats to reject the package or break slide navigation in the field. This guide covers the exact .zip structure, ./shared/ resource pattern, thumbnail specs, and com.veeva.clm JavaScript API calls.

Interactive Companion Tool: Drag and drop your .zip slide package to verify root index.html, relative asset paths, com.veeva.clm calls, and media sizes in your browser using the Veeva CLM Zip Package Validator.


1. Standard Veeva CLM .zip Folder Structure

Each slide .zip must place index.html directly at the root of the archive—never inside a parent subfolder:

my_clm_slide.zip
├── index.html          # Required root entry point
├── css/
│   └── styles.css
├── js/
│   └── custom.js       # Calls com.veeva.clm.*
├── images/
│   └── background.jpg
├── fonts/
│   └── brand.woff2
└── thumb.png           # Optional preview thumbnail (200x150)

Critical Packaging Rules

  1. Zip the contents, not the folder: Selecting the folder in macOS Finder or Windows Explorer creates my_clm_slide/index.html, which fails PromoMats validation. Open the folder, select the files inside, and compress them directly.
  2. Strip OS junk files: Remove __MACOSX/ and .DS_Store before uploading.
  3. Use lowercase, web-safe filenames: Avoid spaces, #, ?, &, and uppercase/lowercase mismatches (iPadOS WebViews are case-sensitive).
  4. Zero external CDN links: Bundle all fonts, CSS, JS, and images inside the zip (or in a shared resource package) so slides work 100% offline.

2. Using ./shared/ Cross-Slide Resources

If a 15-slide presentation shares the same brand logo, navigation bar, or JavaScript library, duplicating those assets in every slide .zip bloats iPad sync sizes.

Instead, Veeva supports a Shared Resource package uploaded separately in PromoMats and referenced relative to each slide using ./shared/:

<link rel="stylesheet" href="./shared/css/global.css" />
<img src="./shared/images/brand-logo.png" alt="Brand Logo" />
<script src="./shared/js/veeva-library.js"></script>

When validating an individual slide .zip locally with our Veeva CLM Zip Package Validator, ./shared/ paths are automatically recognized as cross-slide references rather than broken local paths.


3. Essential com.veeva.clm JavaScript API Calls

Include the Veeva Multichannel JavaScript library in your slide to navigate between key messages and read or log CRM data:

Slide Navigation (goToSlide, nextSlide, prevSlide)

// Jump to a specific key message slide (filename, presentationId)
function openEfficacySlide() {
  com.veeva.clm.goToSlide("efficacy_overview.zip", "ONC_2026_DECK");
}

// Move sequentially within the active presentation
function handleNext() {
  com.veeva.clm.nextSlide();
}

function handlePrev() {
  com.veeva.clm.prevSlide();
}

Reading CRM Context (getDataForCurrentObject)

// Fetch the current Account's formatted name during a call
com.veeva.clm.getDataForCurrentObject("Account", "Formatted_Name_vod__c", function (result) {
  if (result.success) {
    document.getElementById("hcp-name").textContent = result.Account.Formatted_Name_vod__c;
  }
});

4. iPad Aspect Ratio & Thumbnail Sizing

  • Slide Viewport: Design for iPad Retina (2048 × 1536 px or responsive 1024 × 768 px at 4:3) and keep individual images under 2 MB and videos under 20 MB for fast field syncing.
  • Thumbnails: When supplying custom preview thumbnails (thumb.png or poster.png), standard sizing is 200 × 150 px (4:3 aspect ratio).

Official References

Wasim Shaikh

About the author

Wasim Shaikh is a UI/UX developer and front-end engineer with 15+ years of experience, based in Ahmedabad, India. He specializes in Liferay, React, Angular, Next.js and Tailwind CSS.

Keep reading

Veeva · 27 Nov 2026Salesforce SOQL to Veeva VQL Cheat Sheet: Migrating Legacy Veeva CRM QueriesVeeva · 27 Nov 2026Veeva Vault Criteria VQL Guide: Reference Constraints, {{this.field}} Tokens & Sharing RulesVeeva · 27 Nov 2026Veeva eTMF Risk-Based QC & EDL Guide: How to Calculate Audit Readiness