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
cgiocondacgioconda 

Unable to see image formula merge field in email template

Hello,

 

I've built a formula field on a custom object that creates a QR code via the Google API. If I put the formula field on a page layout, it works perfectly.

 

When I include the field in an email template that is sent out via workflow, the image is not shown. In fact, if I look in the source code for the message, the image URL is completely different:

 

How the formula field is built:

IMAGE('https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=http://eventmasterb-developer-edition.na14.force.com/events/targetx_eventsb__markEventAttendance?cid='& TargetX_Eventsb__Contact__r.Id&'&eid='&TargetX_Eventsb__OrgEvent__r.Id, 'QR Code')

 

Example of formula field on actual record:

https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=http://eventmasterb-developer-edition.na14.force.com/events/targetx_eventsb__markEventAttendance?cid=003i000000G6tnN&eid=a0Fi0000002jzPS

 

Example of image in email source code after being sent via workflow:

<img src="http://na15.salesforce.com/servlet/servlet.ImageServer?oid=00Di0000000XnNU&esid=018i0000000P5Kf">

 

Any idea why Salesforce is creating an image internally for this, and not just rendering the img src the way it is in the layout?

 

Christopher Gioconda

gioconda@targetx.com

Vinita_SFDCVinita_SFDC

Hello,

 

Please make sure the image is in public folder, under documents tab and have atleast read only access to all user.

 

Refer: https://help.salesforce.com/apex/HTViewSolution?urlname=How-to-use-images-in-formula-fields&language=en_US

cgiocondacgioconda

I think you're misunderstanding the issue - the image isn't hosted through Salesforce; it's using the IMAGE function in a formula to pull in the image onto the record. I am not manually creating an image for each QR code.

Jessica LayJessica Lay
I have the same issue.  Did you ever find an answer?
Josefine SpottJosefine Spott
Five years later - same issue here. Any solution by now? :-D