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

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

| improve this answer | |
  • That worked perfectly for me! – Maneesh Apr 22 '19 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")
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.