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
    Nov 25 '13 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
    Nov 26 '13 at 1:13
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
    Nov 27 '13 at 8:17
  • Ok. I have fixed it
    – PepeFloyd
    Nov 27 '13 at 10:06
  • You can probably try: <a href="{!URLFOR($Action.Attachment.Download, yourattachmentID )}">Download</a>
    – PepeFloyd
    Nov 27 '13 at 10:06

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.