Forum Discussion

Venkata Ratnam Vemula's avatar
Venkata Ratnam Vemula
Copper Contributor
May 22, 2017

How to identify a restored item in Sharepoint document library using CSOM

Hi,

I have written the CSOM code to get all the document library items after a particular modified time and storing them in the database.

If a user deletes an item from library, I am getting the items from (Web and Site Recycle Bins) and marking it as Deleted in the database.

 

If the user restores the item from Recycle bin, the modified date of the library item remains the same, where as the Library LastModifiedDate changes.

How to detect those restored library items using CSOM?

Resources