What determines if a Graph Event has the type "exception"?

Russell Baker 0 Reputation points
2023-01-12T16:55:50.7133333+00:00

Hello,

My team is noticing that when using the [https://graph.microsoft.com/v1.0/me/calendarView endpoint, sometimes the events we receive will have a type of exception instead of singleInstance, occurrence, or seriesMaster. We are wondering, is there some underlying cause for events with the type set as 'exception'? We need to determine how to process such events but are unsure of what this type implies about the event.

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

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2023-01-12T23:10:36.1233333+00:00

    Hello @Russell Baker

    Thanks for reaching out!

    If you have a recurring event, you can get all the instances (occurrences) of that recurring event for a specified time range. If the event is a seriesMaster type, this returns the occurrences and exceptions of the event in the specified time range.

    A specific instance of a recurring event changes its type to "exception" (from occurences), when made some modifications in startDateTime and endDateTime. For the rest instances, the type remains the same i.e., 'occurences'.

    Please note that List CalendarView Graph API get the occurrences, exceptions and single instances of events in a calendar view defined by a time range, from a user's default calendar.

    Hope this helps.

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

    0 comments No comments