Recurrent Events with Microsoft Graph

Jérémie Darault 26 Reputation points
2022-04-05T09:30:11.073+00:00

Hi

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,445 questions
0 comments No comments
{count} votes

Accepted answer
  1. HarmeetSingh7172 4,811 Reputation points
    2022-04-06T15:34:40.847+00:00

    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
    2022-04-08T08:48:32.09+00:00

    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
    2024-01-08T19:40:41.1766667+00:00

    I was having the same issue. I fixed mine by changing the url to /users/the@email.com/calendarView?select=subject... and so on. It has to include a startDateTime and endDateTime.

    0 comments No comments