You need to sign in to do that
Don't have an account?
mahesh chandra
get all files through Chatter REST API
Through Chatter REST API, it is possible to get list of files per user using following query:
/services/data/v34.0/chatter/users/00590000003A2nmAAC/files
In order list all files in an organization, we need to query for all users separately which will result in consumption of so many API calls.
Is there any way to get all files in an organization using a single API call?
/services/data/v34.0/chatter/users/00590000003A2nmAAC/files
In order list all files in an organization, we need to query for all users separately which will result in consumption of so many API calls.
Is there any way to get all files in an organization using a single API call?
If you want to use REST API, maybe you can get all files by a Group.
/chatter/groups/groupID/files
https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_groups_GroupFiles.htm?search_text=file
No, I need to get the files through REST API.
ContentDocument doesn't return personal files of other users, but Chatter REST API provides the same. Chatter REST API has the limitation of querying per user.
Querying files for Group can only return files in that Group.
In order to get files for an organization, I may query the files for the chatter group created in the name of the organization. But in case, the group has been archived, the feeds get cleared and I am getting a blank list of files. Another problem is if files have been uploaded to a private group, where the admin is not a member, the files cannot be listed.