Search code examples
microsoft-graph-api

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

  • 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
    

    List instances