I've got an issue with the Microsoft Graph API in relation to recurring events. I have been working with both the /me/events and /me/calendarView endpoints and have encountered a limitation that affects the functionality of my application.
Issue Summary:
- When querying both the
/me/events and /me/calendarView endpoints for recurring events, they only return the events if the date range includes the start date of the master event of the series.
Endpoints Used:
- To retrieve events, including the master event:
GET /me/events?$filter=start/dateTime ge '{start}' and end/dateTime le '{end}'&$orderby=start/dateTime desc
To retrieve occurrences from the calendar view:
GET /me/calendarView?startDateTime={startDate}&endDateTime={endDate}
Certainly, here's a revised email to Microsoft support reflecting the situation with both endpoints:
Subject: Microsoft Graph API - Recurring Events Retrieval Issue
Dear Microsoft Support Team,
I am reaching out for assistance regarding an issue with the Microsoft Graph API in relation to recurring events. I have been working with both the /me/events and /me/calendarView endpoints and have encountered a limitation that affects the functionality of our application, [Your Application Name].
Issue Summary:
- When querying both the
/me/events and /me/calendarView endpoints for recurring events, they only return the events if the date range includes the start date of the master event of the series.
Endpoints Used:
- To retrieve events, including the master event:
bashCopy code
GET /me/events?$filter=start/dateTime ge '{start}' and end/dateTime le '{end}'&$orderby=start/dateTime desc
- To retrieve occurrences from the calendar view:
vbnetCopy code
GET /me/calendarView?startDateTime={startDate}&endDateTime={endDate}
Expected Behavior: My expectation, based on the API documentation and standard functionality, is that I should be able to retrieve all occurrences of a recurring event within a specified date range, irrespective of the series start date.
Challenge Encountered: Both endpoints require the series start date to be included in the date range to return any recurring events. This behavior restricts access to current and future occurrences of long-standing recurring events and does not align with the expected functionality.
Request for Support: I am seeking clarification on whether this is intended behavior or a possible oversight in the API's design. I would also like to inquire if there are parameters or settings that may enable the retrieval of all instances of recurring events, regardless of the series start date.