Graph API - User Calendar with only 12 results returned

Nick Patel 20 Reputation points
2024-06-13T20:05:50.8566667+00:00

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

Accepted answer
  1. Anonymous
    2024-06-14T01:57:14.4333333+00:00

    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:

    https://graph.microsoft.com/v1.0/me/calendarView?startDateTime=2023-01-01T19:00:00-08:00&endDateTime=2027-01-02T19:00:00-08:00&$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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.