The response contains nextlink, if the task list contains more than 10 tasks as shown in below image.
Please refer to https://learn.microsoft.com/en-us/graph/paging to understand how to handle the nextlink
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have been trying to use the Microsoft Graph API to see all of the tasks I created in the Todo App on another React Application. I used the react-aad-msal package to help with the connection. Everything has been working so far until I realized that it always returns only the 10 most recent tasks on the list despite there being more than 10 tasks in the list. I was wondering whether this was intended or whether I'm doing something wrong. I did not find anyone else having this issue on the GitHub repository of the package I'm using, so I turned to here.
The response contains nextlink, if the task list contains more than 10 tasks as shown in below image.
Please refer to https://learn.microsoft.com/en-us/graph/paging to understand how to handle the nextlink
Hi !
While the nextlink info is helpful, there is some similar issue I face:
When I do
https://graph.microsoft.com/v1.0/me/todo/lists
I get a result of 15 task lists. However, there is no nextlink in the result like in your example. Trying to add ?$skip=10 to the request does not do anything. I get the same 15 lists returned.
I can add ?$top=10000, that way I get 79 results. However, I have 114 task lists in my ms todo list app and the result set still does not contain a nextlink entry.
When I list the tasks in a task list, I get 10 entries and a nextlink in the result. So something is odd with the task lists. How can I fix this?
FYI: This behaviour is not just present in my code. It behaves exactly like this in Graph Explorer as well:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('XXXXXXXXXXXXX')/todo/lists",
"value": [
{
"@odata.etag": "DFERGHSDFHSTRNSERGVB",
"displayName": "Groceries speziell",
"isOwner": false,
"isShared": true,
"wellknownListName": "none",
"id": "DFGDTHERGSDFGDFDFGSDFGHERGHEFGDF"
},
{
"@odata.etag": "DFGHERHNFBBHHSDFGHSDF
:
:
as you can see, no nextlink. This is copy and paste from graph explorer with some ids replaced. The query was
me/todo/lists