Skip to main content
Conga Support

Composer - IMAGE prefix in Word

You can merge images into a template by using an IMAGE prefix field.  In addition, you can specify the height or width an included image.

IMAGE

Syntax

Value

FieldName is the name of the field from the Template Builder window that contains the image URL.

Notes

You can automatically resize merged images by specifying a height or width value in pixels. The aspect ratio of the image is maintained.

  • To specify the height, include a colon after the merge field name, followed by H=[height in pixels]. 
  • To specify the width, include a colon after the merge field name, followed by W=[width in pixels].

You may specify either height or width, but not both.

When you store an image in Salesforce®, either on the Documents Tab or as an attachment to a record, Salesforce will assign an Id to the image record.  Conga Composer® can use the URL of the image record to retrieve the image and include it in your document.

  • File type must be JPG or PNG.

  • File must be stored in Salesforce (or accessible on a web server) and accessible via a URL.

  • If stored in Salesforce, the image file must be stored in the Documents Tab or as an attachment to a record.

Usage

For a field called Photo URL on the Contact object and an attached a JPG image in the Notes & Attachments area.

{{IMAGE:Photo_URL}}

To specify an image with a width of 100 pixels:

{{IMAGE:OPPORTUNITY_IMAGE_FIELD:W=100}}

To insert an Image field:

  1. Create a text field in Salesforce to hold the URL of the image.

    Do NOT use the word “Image” at the beginning of the text field name.

  2. Store an image on the Salesforce Documents Tab or as an attachment to a record.

  3. Click the View link that accompanies the attachment.

  4. Copy the complete URL of the image record to the clipboard.

  5. Paste the URL into a record of that has the new field created in Step 1 and save the record.

  6. In your Word® template, create a merge field (that corresponds to the field created in Step 1) using IMAGE: as the prefix to the field name.

  • Was this article helpful?