When our users use the graph api to query todoTaskList, some data is missing

wen chen 1 Reputation point
2023-01-04T08:04:48.83+00:00

One of our users said:"Twice attempted to import from my Microsoft To-Do account, but it's only importing about 60% of my lists. Please advise.". api we use is "/me/todo/lists?$top=1000",24 returned successfully but not all.Are there any restrictions? I look forward to your reply as soon as possible!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,666 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gopinath Chennamadhavuni 2,431 Reputation points
    2023-01-04T08:35:27.183+00:00

    Hi @wen chen ,

    I am able to replicate the issue. I have more than 100 todo lists but not able to fetch all even after using $top parameter.
    Then I tried using this Endpoint https://graph.microsoft.com/v1.0/me/todo/lists/delta and able to fetch all the lists. Using this Endpoint you can enumerate all the todo lists using the nextLink property.

    Example reference: refer below screenshot from Graph Explorer. With this Endpoint I am able to fetch all 100 todo lists:
    275939-todoimage.png

    Reference Docs:
    https://learn.microsoft.com/en-us/graph/api/todotasklist-delta?view=graph-rest-1.0

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments