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
Doug ACFDoug ACF 

Download Attachment Problem with Private Sharing

We have a Site "approval" which contains a page that has fielded data from a custom object record and a link to an attachment to that record (like http://xxx.dev.cs2.force.com/approval/servlet/servlet.FileDownload?file=00PR0000000hPpZ).  It all worked fine with public sharing. 

 

However, when we turned sharing for the object to private, the data from the object still displays fine, but when you click the link to the attachment, you get an Authorization Required error.

 

My understanding is that if you have read permission to a particular record via sharing, you can download attachments to that record.  But that does not seem to be the case.

 

Any thoughts?

Doug ACFDoug ACF

We have a case 0399 7086 with Saleforce support, but we are not making progress.  Any help from Salesforce staff here would be appreciated.