Hello, I develop a community and I need to display a button when the customer click on it, he download the file which is a PDF file stored like a file in a contract record.
I read the documentation and know I have to query records in the ContentDocumentLink object and the ContentDistribution object.
The documentation says: "For organizations with Communities enabled, a document can only be shared with users and groups that are a part of the community the file was created in." https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocumentlink.htm
Unfortunately, the community profile can't query the ContentDocumentLink because the SOQL query return nothing.
The file has been stored from Salesforce and not from the community.
Do you have an idea to help me please?