Skip to main content

Notifications

Community site session details

Community site session details

Session Id : gzAK4j67+AYE+xofLkSx0t
Power Apps - Building Power Apps
Answered

Modern Controls - people picker

Like (1) ShareShare
ReportReport
Posted on 20 Jul 2023 08:46:16 by 56

Hi,

 

I have a Power App form which populates a Share Point list.

 

I need a field that searches for the 'Key contact' for a request. (This isn't necessarily the person typing the request)

 

I have added a Modern Control drop down list and completed all the steps like I have successfully done using the Classic controls. However all I get are numbers - and it's not searchable.

 

Any help please? 

Categories:
  • Suggested answer
    Prioste Profile Picture
    13 on 28 Feb 2025 at 04:16:50
    Modern Controls - people picker
    In the Items property, enter the following formula:
     
    Filter(Office365Users.SearchUserV2(
        {
            searchTerm: If(IsBlank(Self.SearchText), "a", Self.SearchText),
            top: 20,
            isSearchTermRequired:false
        }
    ).value, !IsBlank(JobTitle))
  • ValerioRomolo Profile Picture
    6 on 26 Sep 2024 at 22:05:50
    Modern Controls - people picker
    Do you know whether an update/release is planned to solve the problem. Unfortunately in my case, the problem is not solved by the proposed solutions
  • cenixone Profile Picture
    6 on 27 Jun 2024 at 14:42:14
    Re: Modern Controls - people picker

    Any updates on whether Microsoft will fix this? Seems like a basic ask to retain existing support for the SharePoint people picker. Modern controls are looking not so modern. 

  • pauldj Profile Picture
    150 on 20 May 2024 at 15:31:57
    Re: Modern Controls - people picker

    No, not working as it is an error, Microsoft need to fix and release, not seen any updates on when.

  • rontan09 Profile Picture
    2 on 20 May 2024 at 02:24:38
    Re: Modern Controls - people picker

    Did this method work? I tested but not working. Able to get search result but not able to select the record as the app doesn't allow. Kinda buggy since sometimes able to select but most of the time not. 

     

    But when I test, searching & selecting in the Modern Control Combobox using a Collection works fine but only limited to 999 records.

  • Rosie Profile Picture
    290 on 25 Mar 2024 at 21:18:11
    Re: Modern Controls - people picker

    See the video from Reza Dorrani.

    https://www.youtube.com/watch?v=uNSOqgxwZds

    At 17mins in he shows how use the classic datacard for email/person picker - essentially copy the classic datacardvalue control and paste it into the Modern Forms Datacard and delete the original modern datacardvalue.

    Gold!

  • CU23071637-0 Profile Picture
    on 14 Mar 2024 at 18:45:17
    Re: Modern Controls - people picker

    Or you can simply use a "classic" combobox control. Just did a side-by-side comparison with the modern vs. the classic with the exact same "Items" property in both (the default like this: Choices([@Administrators].Administrator) ).

     

    Classic works fine, returns any name in our 50K organization. Modern (which evidently means, "lame") does not return most people and is useless.

     

    Nice work Microsoft... introduce a "modern' version of an existing feature that straight-up DOES NOT WORK... lmao

  • SamFawzi-SmartSolutions Profile Picture
    258 Super User 2025 Season 1 on 21 Feb 2024 at 14:40:35
    Re: Modern Controls - people picker

    To address the limitation of a 999-item cap, consider adopting an alternative strategy by utilizing a modern combo box instead of a dropdown. For setting the item values, you can use the following approach with the Office365Users connector to dynamically search and filter users:

    Office365Users.SearchUser({
    searchTerm: ComboboxCanvas1.SearchText,
    top: 50,
    isSearchTermRequired: false
    })

    Configure the combo box to display the following user fields:

    1. Display Name
    2. Mail

    Implement an onChange event script to update the selected employee's information. You can use the following code snippet to set the EmpObject with the necessary details, ensuring seamless integration:

    Set(EmpObject, { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & Employee.Selected.Mail, Department: "", DisplayName: Employee.Selected.DisplayName, Email: Employee.Selected.Mail, JobTitle: "", Picture: "" } )

     

    This method enhances flexibility and user experience by allowing dynamic searches and selections beyond the standard item limit, ensuring that you can efficiently manage and reference a large number of users within your application.

  • pauldj Profile Picture
    150 on 21 Feb 2024 at 08:58:17
    Re: Modern Controls - people picker

    But even if this fixed the issue (and it doesn't) this only shows upto the top 999 people - what about the others...?

  • SamFawzi-SmartSolutions Profile Picture
    258 Super User 2025 Season 1 on 02 Feb 2024 at 16:44:59
    Re: Modern Controls - people picker

    To integrate with SharePoint's People Column, slight modifications are necessary. Start by collecting user data with Office365Users.SearchUser. Then, enhance this list by adding a "Claims" column and selectively displaying desired attributes. The final step involves renaming the "Mail" column to "Email" for compatibility. This prepared collection can then be utilized as a data source in a modern dropdown. This approach facilitates smooth integration with SharePoint's People Column, ensuring user data is appropriately formatted and accessible.

    ClearCollect(UsersList,Office365Users.SearchUser({searchTerm:"",top:999}));
    ClearCollect(FinalUsersList,RenameColumns(ShowColumns(AddColumns(UsersList,"Claims","i:0#.f|membership|"&ThisRecord.Mail),"Claims","Department","DisplayName","JobTitle","Mail"),"Mail","Email"))
    then you can use the last collection as a data source for the modern dropdown.

     

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard
Loading started