Skip to content

Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Problems
  • Triggers
  • Application specific solutions
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Resources
Menu

Get the user who completed a Planner task with Power Automate

Posted on May 1, 2022May 1, 2022 by Tom

“I’d like to receive an information about a completed Planner task, but Power Automate doesn’t tell me which user completed it!”


If you use the ‘When a task is completed’ Planner trigger, you’ll get a lot of dynamic contents. You get the author, the assigned user, the creation, start, due and completed date, but there’s no information who completed the task. The ‘Completed By’ dynamic content is just not there. Yet it’s still possible to get the information, and this post will show you how.

Extract it from the trigger output JSON

As already explained in the post on parsing JSON, dynamic contents only simplify your work. Power Automate will process the output from an action, and offer you the values it recognises as dynamic contents. If something is missing among the dynamic contents, it doesn’t mean that the information isn’t there. It just wasn’t offered directly.

Take the output from the trigger action, and place it in a text editor (I prefer Visual Studio Code). You’ll see that it contains the ‘completedBy’ property.

The information is there, you just need to extract it. The displayName will be empty, but there’s also the user id to identify the user. Take the user id using an expression.

triggerOutputs()?['body']?['completedBy']?['user']?['id']
Power Automate Planner user completed

Once you have the user id you can use it to search for the additional user information. Add the ‘Get user profile (V2)’ action, use the expression as the input, and take the information you need.

Power Automate Planner user completed

Summary

If you’re looking for something specific and you don’t see it among the dynamic contents, try to check the JSON output. As you can see in this post, even though Power Automate doesn’t offer directly the user who completed the Planner task, you can still extract it from the JSON. It’ll be only the user id as that’s what Planner gives you, but once you have it it’s easy to find the other user information.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Leave a Reply Cancel reply

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

Now available:

The Ultimate Power Automate expressions cheat sheet
Equip yourself with the tool to translate your thoughts into Power Automate expressions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Hello and welcome!

My name is Tom and I'm a business process automation consultant and Microsoft MVP living in the Czech Republic. I’ve been working with Microsoft technologies for almost 10 years, currently using mainly Power Automate, SharePoint, Teams, and the other M365 tools.

I believe that everyone can automate part of their work with the Power Automate platform. You can achieve a lot by "clicking" the flows in the designer, but you can achieve much more if you add a bit of coding knowledge. And that's what this blog is about.

To make the step from no-code Power Automate flows to low-code flows: using basic coding knowledge to build more complex yet more efficient flows to automate more of your daily tasks.

  • Check if email already exists in Outlook contacts (Power Automate)August 7, 2022
  • Set permissions for a SharePoint list or library with Power AutomateAugust 3, 2022
  • Handle deleted files in synchronised SP library in Power AutomateJuly 31, 2022
  • Create item with lookup column in a dynamic list (Power Automate)July 27, 2022
  • How to move list between SharePoint tenants with Power AutomateJuly 24, 2022

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

© 2022 Let's POWER Automate | Powered by Superbs Personal Blog theme