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 / PowerApps for Teams: C...
Power Apps
Unanswered

PowerApps for Teams: Can't use Office365Users to search for users?

(0) ShareShare
ReportReport
Posted on by 112

I am editing an app within PowerApps for Teams and I am noticing that I cannot use a ComboBox as a people picker, where I can in the full PowerApps studio. I have added Office365Users as a Data Source.

 

In PowerApps Studio, the following code works on a ComboBox in the Items property to be able to search: 

Office365Users.SearchUser({searchTerm:ComboBox3.SearchText})

 

However, in PowerApps for Teams, despite setting the data field to DisplayName when I add in this same code I get the red lines underneath. Ive also tried the following:

 

Office365Users.SearchUser({searchTerm:ComboBox3.SearchText}).DisplayName

 

However, interestingly, when I just leave the code as Office365Users.SearchUser() I get a limited list of mailbox and user display names to pick from (but not able to search).

 

In this instance, I have to use Power Apps for Teams. Does anyone have a solution?

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @elfreddos, Try this:

    Office365Users.SearchUser({searchTerm:ComboBox3.Selected.Mail}).DisplayName

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ 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 Thumbs up.👍

    Thanks,
    ANB


  • elfreddos Profile Picture
    112 on at

    This also doesn't work:

    1000044503.png

     

    And these are the associated errors:

    1000044502.png

    And:

    1000044501.png

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @elfreddos,

    Actually, the combo box in Teams is not the same one in Power Apps(not in Teams).

    If you want to use the combo box with SearchText property, you need to turn on the modern control function.

    vqiaqimsft_2-1704249476817.png

     

    Try this:

    ForAll(Office365Users.SearchUser({searchTerm:Self.SearchText}),DisplayName)

    vqiaqimsft_1-1704249426785.png

     

     

  • elfreddos Profile Picture
    112 on at

    I've switched that on, and tried your code, but this still.doesn't work. Btw, themes are something purely visual, not functional. Why would switching that on change anything?

     

    I obviously have switched it on where it was off before, but it was also in the "retired" category as per your screenshot, so maybe that's why it doesn't work? 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @elfreddos,

    I have used the modern controls, so I succed.

    vqiaqimsft_1-1704333932594.png

     

    If you could not use the modern controls, the only way is to copy the classci combobox to Teams.

     

    For PowerApps for Teams, this is the only way.

     

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard