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
Aidel BruckAidel Bruck 

How to programmatically make users collaborators to a file upon upload

Hi,  
This is my use case- 
When a file is uploaded I would like it to be shared automatically with a few users. 
I don't want the uploader to do it manually. 
Is there any way to right code that will take of this?
SwethaSwetha (Salesforce Developers) 
HI Aidel,
The below link gives an idea on the approach
https://success.salesforce.com/answers?id=9063A000000DzyRQAS
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you