Graph - query recurring calendar events filtered by endDate of series

Magyar, Balazs (GE Corporate) 20 Reputation points
2023-04-17T17:31:29.3966667+00:00

I saw in the case of a seriesMaster, the end/dateTime shows the end of the first occurence, not the series. If the recurrence range type is numbered, the recurrence/range/endDate is set to 0001.01.01.

"recurrence": {
        "pattern": {
          "type": "weekly",
          "interval": 1,
          "month": 0,
          "dayOfMonth": 0,
          "daysOfWeek": [
            "wednesday",
            "friday"
          ],
          "firstDayOfWeek": "monday",
          "index": "first"
        },
        "range": {
          "type": "numbered",
          "startDate": "2023-04-19",
          "endDate": "0001-01-01",
          "recurrenceTimeZone": "Central Europe Standard Time",
          "numberOfOccurrences": 10
        }
      },

It can be any range type, I just ran into issues with numbered type. I want to get all recurring events in a calendar, which didn't end in the past. How can I filter for that?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,616 Reputation points
    2023-04-20T11:18:22.2866667+00:00

    Hi Magyar, Balazs (GE Corporate)

    This is an expected behavior. The endDate is only relevant on end date recurrence range types, for noEnd and numbered there is no end date set on the range.

    User's image

    Refer to this document for information on recurrence ranges.

    Hope this helps.

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


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.