Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Use Office365Users.SearchUserV2() with a multi-selct people picker

Posted on 27 Nov 2024 06:25:32 by 35
What is the correct set up for each property listed below when using Office365Users.SearchUserV2() with a multi-select people picker field within a Power apps form?
 
Note: SharePoint list is a multi-select person field 
Should a drop down or combobox be used in the Power Apps form
 -Item
 -DefaultSelectedItems
 -Update
 - any other properties that are required to patch a SP list in new and edit modes.

Hows does one Patch a multi-selct people picker field to Sharepoint list in new mode and edit mode
 
There is no documentation that tells the full story of a form field using Office365Users.SearchUserV2()with a multi-select people picker field
 
As you can see i need help!!!
  • WarrenBelz Profile Picture
    WarrenBelz 143,129 on 27 Nov 2024 at 07:02:14
    Use Office365Users.SearchUserV2() with a multi-selct people picker
    The main issue here is that the Office365.SearchUser function returns a slightly different schema to the Person field, so the Update of the Data Card would be
    ForAll(
       ComboBoxName.SelectedItems As _Items,
       {
          Claims: "i:0#.f|membership|: & Lower(_Items.Mail),
          Department: "",
          DisplayName: _Items.DisplayName,
          Email: _Items.Mail,
          JobTitle: "",
          Picture: ""
       }
    )
    Then the DefaultSelectedItems of the Combo Box
    ForAll(
       ThisItem.YourPersonFieldName As _Items,
       {
          DisplayName: _Items.DisplayName,
          Mail: _Items.Email
       }
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard