1

a formula field displaying an image works fine in internal org and partner community salesforce desktop, but it does not on sf1 in partner community

formula

IMAGE(Photo__c, "Photo Unvailable", 200, 200)

Photo__c is a URL field, that has a following value "c.na24.content.force.com/servlet/…; for one of the records

11
  • any help on above would be greatly appreciated, as i am stuck now with this Commented May 29, 2015 at 7:35
  • can you post the formula? Also the generated HTML in the partner community if possible
    – NSjonas
    Commented May 29, 2015 at 7:43
  • IMAGE(Photo__c, "Photo Unvailable", 200, 200) Commented May 29, 2015 at 7:49
  • 1
    what happens when you try to visit that URL when logged into the SF1 partner portal (as a partner)?
    – NSjonas
    Commented May 29, 2015 at 7:53
  • 1
    Does the file download servlet work in S1 mobile?
    – pchittum
    Commented May 29, 2015 at 10:58

2 Answers 2

2

This seems to be working in my org when using ImageServer instead of FileDownload. I also have the instance stuff stripped out from the start using a relative URL (may not be necessary).

As an example, I tested a URL field with this value:

/servlet/servlet.ImageServer?id=015F0000003oBk4&oid=00DF00000006hty

And a Formula field with this value:

IMAGE(Photo_URL__c, "Test", 300, 100)

This is working in my community in Salesforce1 as well as the standard desktop environments. Don't forget to include both image ID and org ID when using ImageServer!

1
  • That worked perfectly for me!
    – Maneesh
    Commented Apr 22, 2019 at 21:36
0

Below is the formula I used in my formula field. Make sure you store the images in Document and make it externally available. And it is working fine.

HYPERLINK("https://api.whatsapp.com/send?phone=" 
& Mobile__c 
&" &text=%22Hello!%20" 
& Name&"%22",
IMAGE('https://auromirafilms--c.documentforce.com/servlet/servlet.ImageServer?id=0152w000000d3ga&oid=00D2w000008ojm1', "none" , 40, 45), "_self")
& ""
& HYPERLINK("tel:" & Mobile__c &"", IMAGE('https://auromirafilms--c.documentforce.com/servlet/servlet.ImageServer?id=0152w000000d3gf&oid=00D2w000008ojm1', "Red ",25,35)," _self")
&" "
& HYPERLINK("sms:" & Mobile__c &"", IMAGE('https://auromirafilms--c.documentforce.com/servlet/servlet.ImageServer?id=0152w000000d3gk&oid=00D2w000008ojm1', "Red ",24,33)," _self")

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .