The Image parameter inserts an image into your generated document from a Salesforce field that contains an image URL.

Syntax

{{Image:Object.Field}}

For an image stored as a static resource:

{{Image:StaticResource.Staticcontent}}

Values

ComponentEffect
Object.FieldA Salesforce field that contains a valid image URL: a direct link to the image file, usually ending in .png, .jpg or .jpeg. The image at that URL is inserted. Public URLs work best; Salesforce Files (ContentVersion) links also work.
StaticResource.StaticcontentInserts a static resource. Replace Staticcontent with your resource's name. It works in a Word header and takes H and W.
:H=…:W=… (optional)Sets the height and width in pixels. See Image H and W.

Where to add it

Type the Image merge field in your template where you want the image to appear. Image tags work in Word, PowerPoint and Excel templates, including in headers, footers and table rows.

Example

Field valueSyntaxOutput
Account.Description holds an image URL{{Image:Account.Description}}The image from that URL
The same value{{Account.Description}} (no Image: prefix)The URL as text

{{Image:Account.Description}} inserts the image from the URL stored in Account.Description:

Generated document showing the image loaded from the URL in the Account field

Works in

  • Word (DOCX), PowerPoint (PPTX) and Excel (XLSX) templates: yes, including headers, footers and table rows. The example on this page uses a Word template.
  • Template Editor: PNG, JPG and JPEG are supported (version 1.11.0).
  • Image sources: public URLs work best. Salesforce Files (ContentVersion) links also work, and static resources work too.

Common errors

  • The URL is printed as text. The tag is missing the Image: prefix.
  • An empty space, a broken-image icon or a red X. The field is empty, doesn't hold a direct link to an image file, points to an address the Docs Made Easy server can't reach, or uses an unsupported format.
  • The image is too large, too small or stretched. Set the size with H or W. See Image H and W.
  • "Document is too large to process." A template file can be at most 5 MB; compress large images. See DME-DOC-001.

For step-by-step fixes, see Images are missing or broken in the generated document. For a field name error, see DME-SF-002.