I use Flow to create tasks on a regular basis, but I have no automated way to remove completed tasks. I would like to be able to remove completed tasks from a Planner bucket using a Flow.
Would love to know the same! I don't want to see my completed tasks it is taking up space I focus on what is active the same way that you can change views on Outlook tasks. I created a flow that: When a task is assigned to me in 'Planner' create an 'Outlook Task' which works BUT when I complete the task in Outlook it does not complete in Planner - any way around this?
An action which can be added to a scheduled task which has a few selectable options would be brilliant.
Here are steps to make a Scheduled flow to DELETE completed tasks in a Plan
List your Tasks in plan. Then, Apply to each task, get task, then Delete it.
Use Invoke an HTTP request with resource fields are
Use Parse Json with schema is:
Heads up: The approach documented by @David_Nguyen probably works, but you need a Premium license to use the "Invoke an HTTP request" task.
Yes @Hackerman , I was hoping to get support to get the facility included in the functionality as an inbuilt feature more than 'belt and braces' to be honest. I would have thought that most users would benefit from a simpler method of achieving this easily.There is quite a bit lacking in the Planner app, it is not even easy to get the name of the person who completed a task to add for logging, really obvious stuff.
@David_Nguyen I have more than 1000 tasks and it doesn't work for some reason. Can you please help?
I can't sign @David_Nguyen , @David_Nguyen_vn could someone please help me.
Failed with error: 'AADSTS500011: The resource principal named https://graph.microsoft.com/v1.0/planner/tasks/ was not found in the tenant named a7cdc447-3b29-4b41-b73e-8a2cb54b06c6. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. '. Please sign in again.
I found a solution for that. Just take a look, it erases all completed.how to Remove/Delete Completed Tasks in Planner
will this delete about 1000 tasks? I think I tried this but it was not deleting when the tasks are more than 400.
@uvaismohammed it's possible.But he probably had a timeout error.
What you can do is to increase the frequency of times that you back up so as not to let 1000 tasks reach, when less tasks are faster to delete and also to export via excel.