[SalesForce] How to share files uploaded in “Files” related list to Community Users

With Winter 16 release, Salesforce gave the ability to add Files related list to a Custom/Standard object record.

https://docs.releasenotes.salesforce.com/en-us/winter16/release-notes/rn_chatter_files_related_list.htm

Though the documentation says "Files uploaded to a related list are visible only to those who can access the record where they reside, but those with access to the record can share it further (unless the file is frozen).", a community user who has access to the record, cannot see the files uploaded by other internal/external users.

Could any one please provide suggestions how to acheive this?

Best Answer

Files uploaded via this related list will only be visible to internal users, and this field is not editable.

One thing you can do is post the file to the record via the Chatter publisher, and specify the visibility in your post. This would give the attached file the same visibility as the post.

Another option is to write a trigger and edit the Visibility field of the ContentDocumentLink that is created when the file is uploaded. Although you might want this to be context aware so that you don't do this whenever any file is created (and also requires some technical knowledge).

Related Topic