Graph API - User Calendar with only 12 results returned

Nick Patel 20 Reputation points

We can successfully draw a calendar's details in, but only 12 results at a time. We would like to pull all items rather than a truncated list. We are using the Graph API by GET users/{id}/calendars/{cal-ID}/CalendarView?startDateTime=2023-01-01T12:00:01-05:00&endDateTime=2027-01-01T12:00:01-05:00 to pull into PowerBi.

Any assist on this would be greatly appreciated.

Thank you!

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

Accepted answer
  1. Yakun Huang-MSFT 2,335 Reputation points Microsoft Vendor

    Hi @Nick Patel

    You can use the query parameter $top to set the number of data items to be returned at one time. Set the value as large as possible.

    As follows:$top=999

    Hope this helps.

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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful