• cgioconda
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

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

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

The Date Picker shows only few Years from (2009 to 2015) or something. I would like to accept the Date of Birth as input and I would like to list all years in the Date picker Year dropdown. Is there any way I can do it declaratively? If its not possible in the declarative manner, is there any solution that does not require me to write the whole apex sheebang for that particular page? Even if writing a complete apex, page is the only solution, please confirm it.



Thanks in Advance

freshstart force