IMAGE formula field and merge fields in HTML email templates
Last updated 3 days ago ·Reference W-2217435 ·Reported By 169 users
A formula field that uses the function IMAGE to display an image, will display the image correctly in an HTML email template preview, but will not actually include the image in emails sent.
1.- Upload an image file to a document folder in your org
2.- Make sure the file is marked as "Externally Available", and that the folder is accessible to all users with at least Read Only access
3.- Create a formula field to use this image, for example:
Object name: Contact
Field name: Image
Formula: IMAGE("https://na24.salesforce.com/servlet/servlet.FileDownload?file=01560000000wdMyQQQ", "Giraffe")
4.- Open a record to verify that the image is displayed correctly
5.- Create an email template:
HTML (Using Letterhead)
Free Form Letter
6.- Add a merge field for the formula field you created in step #3:
7.- After saving the template, use the "Send Test and Verify Merge Fields" and send a copy to yourself
You will notice the preview displayed on the screen includes the image correctly. The email you sent to yourself will have an empty square where the image should be.
Images available on the web are successfully included in the outgoing email messages, but this might not be a suitable workaround in all situations.
Reported By (169)
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.