web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Assign a planner task ...
Power Apps
Answered

Assign a planner task to myself from my Power App

(0) ShareShare
ReportReport
Posted on by 85

Hello,

 

I have a gallery showing planner tasks in a grid. When one of the tasks is selected in the grid, I'd like the current user to be able to press a button that assigns the task to themself. Does anyone know if that's possible?

 

Thanks!

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @carterprine ,

    Do you want to assign tasks to current user by clicking a button?

    Could you tell me the task gallery's Items?

    I've made a similar test for your reference:

    1)the task gallery's Items:

    Planner.ListTasksV3("NC88FLrSUkxxxx","33022910-a3xxxx").value
    //"NC88FLrSUkxxxx" is my plan id
    "33022910-a3xxxx" is my group id
    Planner.ListTasksV3 is used to list tasks based on planid and groupid

    The result will have id field, which is task id.

    2)insert a button inside the gallery

    set the button's OnSelect:

    Planner.AssignUsers(ThisItem.id,User().Email)

    If you click the button, you will assign the specific task to current user.

     

    You could use Planner.ListMyTasks().value to check current user's tasks.

    5251.PNG

     

     

     

    Best regards,

  • carterprine Profile Picture
    85 on at

    This worked perfectly, thank you @v-yutliu-msft !

  • carterprine Profile Picture
    85 on at

    Thank you for the solution to this question. Upon assigning, it would be nice for the gallery to refresh and show the user is now assigned to the task in question. I attempted setting the formula to the following, without luck. Do you know how I could achieve that?

     

    Planner.AssignUsers(FullfillmentTaskGallery.Selected.id,User().Email); Refresh(Planner)
     
    Many thanks!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Somehow this code of assign users isnt valid, can you please recommend another syntax? 

    the syntax of this code is having the id and assignment; and i dont know what is assignment meant to be.  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard