Skip to main content
Hi Experts,

I have one requirement where I am storing attachments in notes and attachments section of any record in Template custom object. After that I also want to have a custom URL type field in some custom object . The value will be a direct link to download the attachment file. Whenever any user clicks the link, the attachment should get dowloaded.

I know we can do with the custom formula field, but struggling to get the exact URL code for it.

How to do that? Any idea. I have access to all the fields in attachment record. How to get the download link from that? Please help.
3 réponses
  1. 13 janv. 2016, 13:37

    HYPERLINK('/servlet/servlet.FileDownload?file=' + AttachmentId__c, 'View', '_blank') :

    replace AttachmentId__c with your Attachment Id 
0/9000