3

Let's say we have a student object. Under Student Object, we have multiple files attached (such as certifications, etc).

I want to expose public link for each files of each student. So that outside system can consume the file via public link.

1) How can I set public link for files every time file is created dynamically.

Each file for each student should be unique.

Any possible approach for this requirement in Salesforce?

2
  • Where do you want to expose that link? Do you have a site? Customer portal?
    – PepeFloyd
    Commented Nov 25, 2013 at 12:24
  • that is another portal which will consume the file via the public link. All I need is to expose the public link for each attach file in salesforce. I am stuck at this point, don't know how to set it up.
    – kitokid
    Commented Nov 26, 2013 at 1:13

1 Answer 1

1

I use this method on our site and customer portal to expose documents. I'd say this should work for attachments as well as long as the sharing setting for the record allow.

<a href="{!URLFOR($Action.Document.Download, recordID )}">Download</a>
3
  • hi. There is no link for [Download]. Can you fix it?
    – kitokid
    Commented Nov 27, 2013 at 8:17
  • Ok. I have fixed it
    – PepeFloyd
    Commented Nov 27, 2013 at 10:06
  • You can probably try: <a href="{!URLFOR($Action.Attachment.Download, yourattachmentID )}">Download</a>
    – PepeFloyd
    Commented Nov 27, 2013 at 10:06

You must log in to answer this question.

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