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
Sandeep YadavSandeep Yadav 

Make Customer Access checkbox enabled for Files to visible for customer community user

Hi All,

whenever i upload an attachment to account record, Custom Access setting should be checked bydefault for making file visible to customer portal user.

User-added image

I have Used trigger also for this setting on file(ContentDocumentLink) record:
SharingType  = 'V';
Visibility = 'AllUsers';

Any help would be much appreciated.

Regards
Sandeep

SwethaSwetha (Salesforce Developers) 
HI Sandeep,
Are you seeing any errors with the trigger? Can you try the code mentioned in https://developer.salesforce.com/forums/?id=9062I000000XsabQAC and see if that works.

Related: https://salesforce.stackexchange.com/questions/293857/where-is-a-files-customer-access-status-located

If this information helps, please mark the answer as best. Thank you