Share via

Graph query only returns 50 tasks

Metallkiller 21 Reputation points
2024-02-22T23:30:25.16+00:00

Hi, I have a to do list with ~1000 tasks and would like to delete all of them. So I made a nice little C# program to load all the tasks, filter them, and delete all those that fit. That's supposed to delete around 90% of them. Unfortunately though, I only get 50 tasks when calling graphServiceClient.Me.Todo.Lists[listId].Tasks.GetAsync() instead of all of them. What do I have to call to get all tasks?

Developer technologies | .NET | Other
Microsoft Security | Microsoft Graph
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,086 Reputation points
    2024-02-23T02:37:23.84+00:00

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.