Skip to main content
Ronald King ha preguntado en Salesforce Files

Hello,

 

I'm looking to implement a "Make Public" checkbox on files attached to records by setting the "Customer Access" and "Set by Record" options on the file sharing dialog using an Apex trigger. My goal is to allow our internal staff to expose or hide internally posted files to customers through their case records with a single update to attached file's ContentVersion record.

 

Is it possible to change these settings through Apex? I tried manual updates to the SharingPrivacy field on ContentVersion records (changing from "P" to "N"), but this did not change the selected file's sharing.

 

Any advice that you can provide would be appreciated.

 

Thanks and Regards,

 

Ron

2 respuestas
0/9000