Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

Build a report with new, closed and open Planner tasks (Power Automate)

Posted on July 25, 2021July 3, 2022 by Tom

“Can I use Power Automate to produce a daily report of the Planner tasks? I’d like to see the new tasks, open tasks and the tasks closed today.”


If you use Planner to keep track of the daily tasks, it might be helpful to have also a regular report. How many tasks were created today, how many were closed, and how many are still opened from the previous days?

While Power Automate offers triggers when a task is created or closed, they might be not the best solution. These triggers will trigger a flow for each new/closed task. If there’re 2 new and 2 closed tasks per day, you’ll get 4 emails per day. It a good solution if you’re working with time critical tasks, but often one email per day is enough. One email sent by a scheduled flow.

Get the tasks

Start with the ‘Recurrence’ trigger, and add the ‘List tasks’ from your plan right after it. You can’t use any filter in this action so just take all the tasks.

But because you don’t want to include all the tasks in the report, you’ll filter them a bit with the ‘Filter array’. There’ll be one ‘Filter array’ action for each of the tasks group, and you’ll use the output of ‘List tasks’ in all of them.

Filter new Planner tasks created today

The first ‘Filter array’ will filter only the items created since the last report. The flow will run once a day, therefore, it’ll filter the action created today. Add the ‘Filter array’ action with a filter where the task ‘value Created Date Time’ is equal to today. Since the value contains also time, you must remove it with the formatDateTime(…) expression.

formatDateTime(item()?['createdDateTime'],'yyyy-MM-dd')
is equal to 
utcNow('yyyy-MM-dd')

Once you have only the new tasks, you can turn them into an html table for later use.

Filter Planner tasks closed today

When filtering the closed tasks, you’re again interested only in the tasks closed today. You don’t want all the closed tasks in the Planner. That means you’ll need multiple filters in the ‘Filter array’ action. One filter by the date, and the other one to get the completed tasks.

You can recognise the completed Planner tasks by their ‘percentComplete’ value. If the task is completed, the value will be 100 (percent).

@and(
    equals(
        item()?['percentComplete'], 
        int(100)
    ), 
    equals(
        utcNow('yyyy-MM-dd'),
        formatDateTime(item()?['completedDateTime'],'yyyy-MM-dd')
    )
)

Since you’re using multiple filters, use the advanced mode available in the ‘Filter array’. The result can be again converted into html table. You can even include a link to the Planner tasks.

Power Automate Planner tasks report

Filter all open Planner tasks

The third, and for this post also last, is the filter to get all the open tasks. Every task that is still in the Planner and is not completed. As already described, the completed tasks have ‘percentComplete’ value 100. If it’s less than 100, the task is still open. Again, you can turn the opened tasks into a table.

Send the reminder email

And now, when you prepared all the tables, you can send an email with all of them.

Power Automate Planner tasks report

Summary

When you use Power Automate to create report from tasks in Planner, you’ll need to understand the ‘Filter array’ action. As some other actions, e.g. Teams actions, ‘List tasks’ won’t allow you to filter right away. It’ll give you all the tasks and you must filter later. The flow in this post will report tasks with today’s date, by the design it should run after the working hours. But you can easily adjust it for “yesterday’s” report if you remove 1 day from utcNow().

Also the result html tables might need a bit formatting, depending on which task data you want to display. The most challenging will be the format of the ‘assigned’ users, but that’s a topic for another blog post.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

8 thoughts on “Build a report with new, closed and open Planner tasks (Power Automate)”

  1. Ganesh says:
    June 23, 2022 at 5:56 pm

    Hi,

    Thanks for this post, List Tasks in Power Automate not listing the tasks with completed status. Please help

    Reply
    1. Tom says:
      July 3, 2022 at 11:48 am

      Hello Ganesh,
      I just checked the action and it works fine, your problem is probably elsewhere – no completed task, wrong plan/group, filter…

      Reply
  2. Samantha says:
    July 5, 2022 at 8:21 pm

    Can you add in a column that lists who the task is assigned to? What if multiple people are assigned to one task?

    Reply
    1. Tom says:
      July 12, 2022 at 4:41 pm

      Hello Samantha,
      you can follow the solution described here: https://tomriha.com/export-planner-assigned-users-into-excel-with-power-automate/

      Reply
  3. Eleanor says:
    February 23, 2023 at 8:51 am

    This is fantastic thanks! I’m wondering how I could tweak it to get tasks weekly? any suggestions?

    Reply
    1. Tom says:
      March 1, 2023 at 11:01 pm

      Hello Eleanor,
      you can change the trigger settings – configure it to run weekly on a specific day each week.

      Reply
  4. Chris Wolstencroft says:
    March 1, 2023 at 6:05 pm

    How do you add checklist items to the report?

    Reply
    1. Tom says:
      March 19, 2023 at 3:25 pm

      Hello Chris,
      no idea, I might add it to the list of potential future posts.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Working on an Approval process?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy a fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes