'Graph Api - events how to specify date range. Not getting recurring events
I am specifying
https://graph.microsoft.com/v1.0/me//events?filter=start/DateTime ge '2021-03-02T19:30' and
start/DateTime lt '2021-03-03T20:00'
I am not getting recurring events when specifying the range. Any specific reason? I need events for a day
Solution 1:[1]
The endpoint https://graph.microsoft.com/v1.0/me/events returns only single instance and master series.
If you know id of recurring event you can use the following endpoint to get the instances (occurrences) of an event for a specified time range.
GET https://graph.microsoft.com/v1.0/me/events/{event_id}/instances?startDateTime=2021-03-02T19:30:00.0000000&endDateTime=22021-03-03T20:00.0000000
Solution 2:[2]
What I did was fetched all master events for the past year and then looped on that to get instances that occur during the date range. It is a huge PITA for what you get out of it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user2250152 |
| Solution 2 | AJF |
