function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

insert images dynamically in a HTML EMAIL Template



We are trying to use HTML Email Templates.

We want the user to provide the ability to edit the template after selecting it in Send an email page so choosed HTML(With Letter heads) instead of Custom HTML Templates.


But we are facing an issue in terms of dynamically inserting an image.

We are using same Template for different brands. But based on the Brand we want to change the image instead of creating multiple email templates with same content but different images.


Im not sure how to handle this.

Any pointers will be of great help. ANy work around is greatly appreciated.


We want to use the same template but with dynamic images. with the ability to edit the Template after selection.






Best Answer chosen by Admin (Salesforce Developers) 
Tried. That did not work.

All Answers

Did you try having the link of the image within the same object as a formula field based on the brand and using this field to display the image? This is just a thought
Tried. That did not work.
This was selected as the best answer