You need to sign in to do that
Don't have an account?
Content objects not returned in queries run by public guest/site user
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?
Has anyone run into this? Is there a way for the site user to have access without recreating the objects in apex?
Note that "Files" are available to Customer Community, but that would be Files uploaded to Chatter, as opposed to Files attached to records (I'm pretty sure...).