Forum Discussion
Ashwin17
Oct 12, 2021Copper Contributor
Graph API (Get Schedule API) not returning more than 1000 calendar Entries
I am calling a Graph API (Get Schedule) to retrieve the calendar details of employees in an organization. It's working as expected most of the times, but for one of the employees it's throwing an error saying
The result set contains too many calendar entries. The allowed size is 1000; the actual size is 1024...
could someone please let me know if pagination is possible while returning the results from API. If not how can I get all the Calendar Entries.
- SanjayKumar_PendyalaBrass ContributorHello Ashwin17, Could you please let us know what is the Graph query you are executing? By design any Graph Query would give the first 1000 results by Design. However you can use the '@odata.nextLink' to get the result of next 1000 or leftover entries
- zlozanoCopper Contributor
SanjayKumar_Pendyala I am running into the same issue using the getSchedule API. The response contains an error:
The result set contains too many calendar entries. The allowed size is 1000; the actual size is 1157.but does not contain any next page tokens.