Efficiently Retrieving All Assigned/Planned Tasks via Microsoft Graph API with single call
Hi.
I am using PowerAutomate to get all of the tasks/assigned tasks for all of the users. I am sending Graph API call. Till now, i have tried two methods.
Method 1 https://graph.microsoft.com/v1.0/users/{user-email}/todo/lists/tasks/tasks https://graph.microsoft.com/v1.0/users/{user-email}/planner/tasks
Method 2. Get all groups https://graph.microsoft.com/v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified')
Get all plans GET https://graph.microsoft.com/v1.0/planner/plans?$filter=owner eq 'groupId' GET https://graph.microsoft.com/v1.0/groups/{groupId}/planner/plans
Get Tasks for each plan GET https://graph.microsoft.com/v1.0/planner/tasks?$filter=planId eq '{planId}'
Is there any other way to get all of the tasks without sending multiple calls , ie one call that gets all of the tasks as in the above mentioned methods we will be sending multiple calls. I want to prevent sending multiple calls and only want to get all assigned/planned tasks.
Best Regards.
Shaikh Shahrukh