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
Rahul JagtapRahul Jagtap 

Mass Update File content Documents

Hi All,

I have uploade around 400 files to chatter. But to all files, i am owner of that files.

Now i want change all files to viewer as public in company.

How can i mass update these files? any setting or dataloader example?
Neil HayekNeil Hayek
To do this, you can use the ContentDocumentLink (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocumentlink.htm) API.  You can use dataloader to insert a row for each document Id.  Set the LinkedEntityId to the organization id to share the file with the company, and then the ShareType to V for viewer.
Ajay K DubediAjay K Dubedi
hi Rahul,

There is a new app on app exchange for handling chatter documents.
Try this link :
https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B56QkEAJ

Thanks
Sabina BashukSabina Bashuk
In this case I use Skyvia free data import tool. There are 3 ways to mass update Salesforce documents with its help: via CSV, via filtering and via SQL queries. Please find the tutorial here (https://skyvia.com/blog/top-3-ways-to-mass-update-salesforce-records)