Skip to main content

Notifications

Community site session details

Community site session details

Session Id : CRr+jO2jLVK1vQDQJhbM46
Power Automate - General Discussion
Answered

How to find out what User completed a Planner task?

Like (2) ShareShare
ReportReport
Posted on 17 Apr 2018 18:06:42 by

I am trying to post a message in Teams to show that a specific task has been completed by the user who closed a Task in Planner. Does anyone know the variable I can use to accomplish this? Currently there is no content for user who completed a task. 

Snag_1571cece.png

 

Categories:
  • Zokpia Profile Picture
    7 on 10 Apr 2024 at 11:54:53
    Re: How to find out what User completed a Planner task?

    Hi, 

    I have tried everything stated here by my flow still doesnt work. I always get error in the get user profile

  • nchambe Profile Picture
    32 on 17 Feb 2022 at 18:50:51
    Re: How to find out what User completed a Planner task?

    I ran into this issue as well and used an expression to lookup the user so I could pull the display name in just a couple short steps. I wrote a step-by-step guide and recorded a video as well to help others:

    Blog post step-by-step: https://natechamberlain.com/2022/02/17/how-to-get-planner-task-completed-by-dynamic-content-in-power...and 

    Video recording: https://youtu.be/fVnKKeyDryM 

  • Community Power Platform Member Profile Picture
    on 26 Oct 2020 at 19:18:32
    Re: How to find out what User completed a Planner task?

    @GabrielStJohn ,

     

    As the original user is no longer a part of this forum, would an admin be able to accept @HonzaUH's response as the solution?

     

    It is exactly the solution for the problem presented.

     

    thank you,

    Kyle

  • FabianoCarvalho Profile Picture
    2 on 13 Aug 2020 at 18:53:57
    Re: How to find out what User completed a Planner task?

    It works perfect for me! Thank you.

     

    Best regards,

    Fabiano

  • seanpcoa Profile Picture
    10 on 17 Jul 2020 at 14:45:57
    Re: How to find out what User completed a Planner task?

    @HonzaUH Of course this is it 🙂 Now it indeed "works like a charm". Many thanks to you and @Anonymous  for taking the time to help another noob!

  • Verified answer
    HonzaUH Profile Picture
    31 on 17 Jul 2020 at 07:49:37
    Re: How to find out what User completed a Planner task?

    Hi @seanpcoa !

    If I am correct, you are using multiple triggers in your Flow. It is most likely that 'triggerBody()' only works for the first trigger in the whole Flow. So you are basically trying to find this value triggerBody()?['completedBy']?['user']?['ID'] in a bad triggerBody. Of course it isn't there (well it is, but the path is diferent and the value is NULL), so hence goes the error. I can't think of a solution to this now, because I am quite busy, but you can definitely make it work if you only use one trigger action per Flow 🙂

    Cheers and GL!

  • seanpcoa Profile Picture
    10 on 16 Jul 2020 at 22:24:17
    Re: How to find out what User completed a Planner task?

    Adding a bit to this, when we use the expression triggerBody()?['createdBy']?['user']?['ID'] the flow works, and we get to the good bits in the user profile:

    01.png

     

    However, when we use the expression triggerBody()?['completedBy']?['user']?['ID'] the flow breaks and we get a 404 not found:

    02.png

     

    Both createdBy and completedBy contain valid user ID strings in the trigger body:

    03.png

     

    Any ideas or advice would be greatly appreciated!

  • seanpcoa Profile Picture
    10 on 16 Jul 2020 at 21:03:47
    Re: How to find out what User completed a Planner task?

    @Kevin <facepalm> I've been so used to clicking into the field to add the expression I didn't even bother to check the obvious. Thanks for pointing that out! I'm still back at the original problem: the flow fails at Get user profile (V2) with 404 resource not found in the Body output. Pretty frustrating, it seems I must be missing something obvious here. In this flow, I've kept it as simple as possible for testing, but can't seem to extract the completedBy user ID in the Get user profile (V2) step:

    02.png

     

     

  • Community Power Platform Member Profile Picture
    on 16 Jul 2020 at 20:36:06
    Re: How to find out what User completed a Planner task?

    Glad that it's working now!

     

    Not sure why PA acts the way it does sometimes. Sometimes saving and leaving is what it takes! 😕

     

    to see the expression, hover your cursor over the green box...

     

    I think the reason it doesn't show up in the expression box is so that you can add another expression if you want to (though you'd think Microsoft could just add an option to add new or edit existing...).

     

    to keep the expression in a place that you can readily see it and copy it if needed, you can add a comment to the action block (accessed in the options list at the top right of each action block) and type/paste the full expression there.

     

    thanks,

    Kyle

  • seanpcoa Profile Picture
    10 on 16 Jul 2020 at 20:30:56
    Re: How to find out what User completed a Planner task?

    @Anonymous thank you for that tip! I saved, exited the flow, then went back to edit the flow. The field is now green as shown in @HonzaUH 's screenshots. Not sure why I would need to leave, then come back. However, I cannot see the code in the expression to verify it's still there:

    2020-07-16_13-23-10.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
ankit_singhal Profile Picture

ankit_singhal 5 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 2 Super User 2025 Season 1

#2
Mitchell GC Profile Picture

Mitchell GC 2

Overall leaderboard