Sharepoint CSOM Change Log query is not displaying item deleted logs.

Manikandan Selvam 0 Reputation points
2024-05-30T10:05:25.4266667+00:00

I want to get deleted items/files from a SharePoint list using the change query logs.

Image

The changequery returns items/files that are added or updated but not deleted.

Can somebody help me on this where am I going wrong?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,150 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,783 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,176 Reputation points Microsoft Vendor
    2024-05-31T02:15:37.3633333+00:00

    Hi @Manikandan Selvam,The parameter DateTime.Now.AddDays(-2) will set time (in UTC) from when changes occurred. The ChangeToken start date was set to two days ago in my case. Please check you have take delete action in the list after ChangeToken start date.

    Here is the document for more details

    Query SharePoint change log with ChangeQuery and ChangeToken | Microsoft Docs,


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments