How can i get all the instances of recurring series event its returning only 10 instances not all

praveen j 1 Reputation point
2022-09-21T10:55:29.383+00:00

now I want to get all the list of instances within the specified date range and for that, I used this graph API

Here eventId is the master event id of the recurring series

https://graph.microsoft.com/v1.0/users/{userId}/events/{eventId}/instances?startDateTime=2022-09-19T00:00:00&endDateTime=2022-11-30T23:59:59

But it returns only the first 10 instances not all, what I am missing here.

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

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-09-21T22:07:15.487+00:00

    Hi @praveen j ,

    Hope you're doing well.

    I’m unable to reproduce this issue using my test tenant. I am getting all the occurences (instances) for an event 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.

    Refer below screenshots for better understanding-

    243692-recurring11.png

    243663-recurring20.png

    References: List Instances API

    Hope this helps.

    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