getSchedule return no odata.nextlink

梦想与她 提交于 2021-01-29 18:25:21

问题


sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. first I start with getSchedule endpoint. I found I never see odata.nextlink in the response, even I make the large time range, 60 days. still no odata.nextlink. my quesion is:

I don't have enough meeting? if yes, how many meetings will cause odata.nextlink?

is it possible, getSchedule will never return odata.nextlink?

I also try add top=2, (v1.0/me/calendar/getSchedule?$top=2), still no odata.nextlink in the response.

Thanks Wes


回答1:


Odata.Nextlink is provided only when there are more number of records you get as a response. There is a concept of paging where the api's have their own default number of records per page. Here since you are using getScheduler, it gives you a response of different schedules of users or distributed list or resources you asked in the payload. Top is used when you want data of a HTTP call in a single page. It can accept values between 1 and 999. Please check this document.

Also try with 101 user accounts, Max this would be the answer. I am not sure about the exact number since I didn't check for that many users. I have seen only 100 per page for /users endpoint so this should be it.



来源:https://stackoverflow.com/questions/64282993/getschedule-return-no-odata-nextlink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!