How to see 'exception' entries with calendar graph API?

Neulinger, Nathan 0 Reputation points
2024-06-16T23:33:04.6233333+00:00

I've tried the list calendar view and events/{event_id}/instances API paths in both the v1.0 and beta API scopes. Neither is returning exception entries for cancelled instances of recurrent events. Any cancelled occurrences seem to just be absent. (Have not checked for 'other changes' exceptions at this point.)

I've seen a few different other questions that reference this with different supposed solutions (such as using the List Calendar View api) or using the beta endpoints, but they don't seem to have any effect.

Is this a known limitation, or is there some other means to query to request these event instances?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,380 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 2,335 Reputation points Microsoft Vendor
    2024-06-17T02:36:22.5833333+00:00

    Hi @Neulinger, Nathan

    According to the Graph API, the isCancelled property of the event property is used to indicate whether the event was cancelled.

    Therefore, if you need to search for canceled events, you can filter out all canceled events by adding the $filter query parameter when querying all events.

    The query request is as follows:

    https://graph.microsoft.com/v1.0/me/events?$filter=isCancelled eq true
    

    You can see the link for specific information, and you can specify the calendar or user to query:

    https://learn.microsoft.com/en-us/graph/api/user-list-events?view=graph-rest-1.0&tabs=http

    Hope this helps.

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