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
Doe 4Doe 4 

How to get changed files using REST api

Hi,
  I would like to know is there a way to get changed files and newly uploaded/added files in Salesforce? In content management systems and cloud storages we usually have a pageToken or cursor with which we can load changed files and newly added files only instead of loading all files. 

PS : I use chatter api to load info regarding files in salesforce.
Neil HayekNeil Hayek
Hello,

Could you please clarify what your use case is?

I do not think our REST API would be the way to find out about changed files.  What comes to mind is doing a query where the lastModifiedDate is greater than a certain date.  For example, get me all files where lastModifiedDate > (current date - 7 days) to get all files modified (or uploaded) in the last week.