Recurrent Events with Microsoft Graph

Jérémie Darault 26 Reputation points


I have a problem with the Graph API regarding recurring events ( /me/calendars/<calendar_id> ).

My query is: /me/calendars/<calendar_id>/events?$filter=start/dateTime+ge+'2022-03-05T09:24:03+00:00'+and+end/dateTime+le+'2022-05-05T09:24:03+00:00'

Some recurrent events do not show up in the API. I can see them on Outlook but they are not present in the events returned by the API.

Do you know of any peculiarity that could explain this problem?

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

Accepted answer
  1. HarmeetSingh7172 4,811 Reputation points

    Hi @Jérémie Darault

    Hope you are doing well.

    I’m unable to reproduce this issue using my test tenant. I am getting all the recurring events in graph API response.
    There is a possibility you might be checking the first page only. The Calendar API has a default page size of 10. You can use “@odata.nextLink” property to obtain all results. The page results is not sorted by start date unless “OrderBy” is specifically added.

    Moreover, you can use List Instances API to get the instances (occurrences) of an event for a specified date range.

    GET /me/events/{id}/instances?startDateTime={start_datetime}&endDateTime={end_datetime}  

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

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jérémie Darault 26 Reputation points

    I haven't seen this detail in the response and that's why i didn't get all my events. It works now !
    Thank you so much @HarmeetSingh7172 !

    0 comments No comments

  2. Jay D 0 Reputation points

    I was having the same issue. I fixed mine by changing the url to /users/ and so on. It has to include a startDateTime and endDateTime.

    0 comments No comments