Graph Api Events get all modified / deleted / canceled occurrences

ASCII 1 Reputation point
2022-01-19T10:59:30.537+00:00

Hello i need to list all modified / deleted / canceled occurrences of a event.

I know the Request => GET /users/{id | userPrincipalName}/calendar/events/{id}/instances?startDateTime={start_datetime}&endDateTime={end_datetime}

I understand that it is nessery to have a endDateTime for a open RepeatRange with no EndDate when i want to list all occurrences.
But even with a specified Range modified (or modified and then deleted / canceled) occurrences can be have their occurrence-Date befor or after the RepeatRange-Definition.
In EWS it was simple to get a list with a modified occurences and deleted occurrences.
How can i archieve this with graph api?

Do i have to look via a CalenderView into it and use Search-Params for all occurrences from the Master?
Is there no way to get i simple list(s) with informations about modified and deleted/canceled occurrences?
Best regarts

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,667 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 37,216 Reputation points
    2022-01-24T09:50:26.213+00:00

    Hi @ASCII

    You can call the /delta endpoint to track event changes (add/remove/update).

    GET https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/calendarView/delta?startdatetime={start_datetime}&enddatetime={end_datetime}  
    Prefer: odata.maxpagesize=2  
    

    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.