0
votes

We need to fetch all Calendars in an office 365 calendar account

We basically make an api call to the endpoint https://graph.microsoft.com/v1.0/users/[logged-in-user-id]/calendars

but it returns only 10 calendars (maximum) when we call the API !?

Any help/tips appreciated !

1
You can use $top query parameter to get 1 to 999 objects per page. By default every API has its own default pagination count. So you can simply use top query parameter or you can use nextLink which you get in the first API call and use it to get next set of results. See this document.Let me know if this helps.Shiva Keshav Varma
Moving this to answer. If the posted answer resolves your question, please mark it as the answer by clicking the check mark. Doing so helps others find answers to their questions. See meta.stackexchange.com/questions/5234/…Shiva Keshav Varma

1 Answers

0
votes

You can use $top query parameter to get 1 to 999 objects per page. By default every API has its own default pagination count. So you can simply use top query parameter or you can use nextLink which you get in the first API call and use it to get next set of results. See this document. Let me know if this helps.