Skip to main content
When associating a Salesforce File to an object in the UI, the associated ContentDocumentLink and ContentVersion records are not returned when the public guest/site user queries for them. An internal Salesforce user can query for them fine. I've tried updating sharing settings, changing owners, and verified my query runs without sharing. The only thing that seems to work is if I recreate those objects in apex, then the user can query for them.

Has anyone run into this? Is there a way for the site user to have access without recreating the objects in apex?
7 个回答
  1. 2024年2月29日 13:55

    Another approach that's worked for me for ensuring that ContentVersions uploaded by Salesforce users are subsequently available to be read by public site users is to add the content via a content library that includes the site guest user as one of its members. 

    Another approach that's worked for me for ensuring that ContentVersions uploaded by Salesforce users are subsequently available to be read by public site users is to add the content via a content libr

0/9000