Loading

Dynamic Images in Server-Side OmniStudio Document Generation

Julkaisupäivä: Aug 7, 2026
Kuvaus

Issue

When building an OmniScript that generates a document, a user wants to include a dynamic image (an image whose source is driven by data rather than being static). The dynamic image renders correctly in client-side document generation and at preview, and the user needs to know whether dynamic images are also supported when the document is produced through server-side document generation.

Symptoms

 

  • A dynamic image renders correctly when the document is generated on the client side (including at preview).
  • Uncertainty about whether "dynamic image" is a supported element for server-side output.
  • On older configurations, a dynamic image that works client-side does not appear when generation is switched to the server side.

 

Root Cause

Historically, dynamic images (along with dynamic rich text and hyperlinks) were supported only in client-side document generation, and server-side generation carried documented limitations. Salesforce has since added dynamic image support to server-side document generation in Document Generation 2.0. Whether a dynamic image renders server-side therefore depends on the document generation version and configuration in use — not on a template or OmniScript error. This is why the same template can render an image client-side while behaving differently server-side on a configuration that predates or does not use Document Generation 2.0.

Ratkaisu
  1. Confirm where it works today. Verify the dynamic image renders in client-side generation and at preview. If it does, the template and OmniScript configuration are sound and the question is one of mode/version support, not a defect.
  2. Check your document generation version. Server-side dynamic image support is provided by Document Generation 2.0. Confirm whether your org is using Document Generation 2.0 for server-side generation.
  3. Review the current supported capabilities. Check the Salesforce "Known Limitations" documentation for both client-side and server-side dynamic rich text, hyperlinks, and images, and the server-side dynamic-content rendering documentation (linked below), to confirm the exact behavior for your org's release.
  4. Choose a supported path:
    • If you are on Document Generation 2.0, follow the server-side dynamic images documentation to enable and configure dynamic images for server-side generation.
    • If you are not on Document Generation 2.0 and need dynamic images immediately, use client-side document generation for that template, or plan to adopt Document Generation 2.0 for server-side output.
  5. Verify. Regenerate the document in the chosen mode and confirm the image renders as expected. If server-side dynamic images are documented as supported for your configuration but still fail, capture the OmniScript configuration and generated output (with no customer data) and engage Salesforce Support.
Knowledge-artikkelin numero

000395209

 
Ladataan
Salesforce Help | Article