getSchedule return no odata.nextlink

Weslley Wang 1 Reputation point
2020-10-09T15:33:02.107+00:00

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

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shiva Keshav Varma 401 Reputation points
    2020-10-18T12:24:01.447+00:00

    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 30 accounts and you should be able to see 20 account schedules per page.

    0 comments No comments