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
prathor0071.336023081603808E12prathor0071.336023081603808E12 

display image in formula field dynamic(image is stored in attachments)

show image of contact in formula field in contact detail page(image is stored in notes and attachments) whenever image is saved /changed/multiple image(only customisation - no coding) is stored(takes only first image)

Navatar_DbSupNavatar_DbSup

Hi,

 

Create a text type formula and try the below formula as reference:

 

IMAGE("/servlet/servlet.FileDownload?file="+imageid , "NO IMAGE" ,100,100)

Note: pass the salesforce image (document ) id in imageid;

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

ankit.goel345ankit.goel345

How to reference the Salesforce ID of the image stored in attachment , Dynamically?????

As you mentioned to be use in imageid

Navatar_DbSupNavatar_DbSup

Hi,

 

Tyr the below formula as reference:

 

IMAGE("/servlet/servlet.FileDownload?file=01590000000RvYF" , "NO IMAGE" ,100,100))

Note: 01590000000RvYF change this id with your document id.

Susheel Reddy BSusheel Reddy B

Hi Ankit,

 

I have used :

  IMAGE("/servlet/servlet.FileDownload?file=" &  Attachyment_ID__c , "No Attachments",300,400).

  I am using a trigger to update "Attachyment_ID__c" filed.

 

It's working fine if that field has a Attachmnet id.

If there is no ID in that field, then it is dispalying a large box in IE & Chrome but in Firefox it is displaying emplty field.

Plaese help me how to overcome this.

 

Thanks in advance.

 

Regards,

Susheel