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.


SwethaSwetha (Salesforce Developers) 
HI Sandeep,
Are you seeing any errors with the trigger? Can you try the code mentioned in and see if that works.


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