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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Assigning Planner Task...
Power Apps
Answered

Assigning Planner Tasks to Users From PowerApps

(0) ShareShare
ReportReport
Posted on by 17

I am new to PowerApps and I would like some guidance, please. I want to build an app that integrates with the Planner app and I found a template called "Quick Task" that has most of the functionality I am looking for. My team planner has two buckets for the sub-teams under the Plan (we work together, but there are two buckets for Team 1 and Team 2 as both teams have different responsibilities). The only issue I'm having is assigning tasks. I want to have a custom feature, where I can assign tasks to multiple users, instead of just one user at a time. Also, if there are two buckets representing Team 1 and Team 2, how do I create functionality to add/remove specific users to these teams?

Categories:
I have the same question (0)
  • Verified answer
    Akah Mandela Profile Picture
    445 on at

    This will be a little difficult as by default, the Planner connector in PowerApps allows you to create tasks and assign them to individual users.

    How ever you can try this :

    Concatenate the user IDs (separated by semicolons) and assign the task to this combined group.
    Here’s an example of how you can achieve this using the Planner.CreateTask function:

     

     

     

     

    Assignees = Office365Users.SearchUser();
    
    Planner.CreateTask(
     PlanID,
     TaskTitle,
     {
     bucketId: BucketID,
     startDateTime: StartDate,
     dueDateTime: DueDate,
     assignments: Concat(Assignees.SelectedItems, Id, ";")
     }
    )

     

     

     

     

    In the above formula:

    • PlanID, BucketID, TaskTitle, StartDate, and DueDate are placeholders for your actual values.
    • Assignees refers to a control (e.g., a combo box) where you select multiple users.
    • The Concat function combines the selected user IDs into a semicolon-separated string.

    Try this and let me know if it works for you. 

    As for the add/remove specific users, 

    • You can use collections or data sources to store information about users and their associations with buckets.
    • When adding users to a bucket, update the relevant collection or data source accordingly.
    • For example, if you have a collection called Team1Users and another called Team2Users, you can add or remove users as needed:
      // Add a user to Team 1
      Collect(Team1Users, { UserId: UserToAdd.Id, Name: UserToAdd.Name })
      
      // Remove a user from Team 2
      Remove(Team2Users, LookUp(Team2Users, UserId = UserToRemove.Id))
    • You can then use these collections as data sources for your app’s user management features.
  • Akah Mandela Profile Picture
    445 on at

    Hey @ninaaa, I have updated my  previous reply with what you can use in your combo box and a solution for the second part of your question

  • ninaaa Profile Picture
    17 on at

    Thank you for taking the time to help me, I really appreciate it. I'm not sure if you have seen the "Quick Task" template, but there is a UserSearchGallery, with the following code to select a user: 

    If(!IsBlank(AssignToText.Text) && AssignToText.Text<>AssignToUser.DisplayName, Office365Users.SearchUser({searchTerm:Trim(AssignToText.Text)}))

     

    Do I get rid of this, because I don't understand how your solution ties into this please

     

  • Akah Mandela Profile Picture
    445 on at

    replace the && with || or use your combobox name to maintain the logic as 
    If(!IsBlank(SelectedPlan) && !IsBlank(Assignees), DisplayMode.Edit, DisplayMode.Disabled)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard