question

JrmieDarault-2401 avatar image
0 Votes"
JrmieDarault-2401 asked JrmieDarault-2401 answered

Recurrent Events with Microsoft Graph

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-calendarmicrosoft-graph-applicationsmicrosoft-graph-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HarmeetSinghMSFT-7172 avatar image
0 Votes"
HarmeetSinghMSFT-7172 answered

Hi @JrmieDarault-2401

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".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JrmieDarault-2401 avatar image
0 Votes"
JrmieDarault-2401 answered

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 @HarmeetSinghMSFT-7172 !

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.