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 Apps
Suggested Answer

office365

(2) ShareShare
ReportReport
Posted on by 118
I am using the office365 function to lookup people's name in my company but for some reason I am getting weird entries in it too along with the names. Screenshot attached. I want to ensure that only the names of people show up. Kindly help. 

the formula I used is:
 
Office365Users.SearchUser({searchTerm:Combox_CatApprover.SearchText})



Categories:
I have the same question (0)
  • Pankil Bhatt Profile Picture
    2 on at
    Hi 
     
    Check your User in Office 365 and Entra ID there should we the weird entries in it.
     
    Thanks
  • curiousperson01 Profile Picture
    118 on at
    @Pankil Bhatt

    Does this mean the code is correct, the issue is coming from the directory over which we have no control?
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at
    Select the Combo Box, then Edit in the right Properties panel and then DisplayName in both the Primary text and Search field drop downs - that should fix the issue.
     
    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
     
     
  • curiousperson01 Profile Picture
    118 on at
    @WarrenBelz
    It doesn't solve it yet.
    Also, how are you tagging me in the replies? I am using "@and then your name" as it appears on the replies but it doesn't work for me.
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at
    I am not sure why that does not work - you are currently displaying a field other than DisplayName - you just need to display that. Can you please send a screenshot of the same panel I posted.
  • curiousperson01 Profile Picture
    118 on at
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at
    Try deleting and re-creating it - should work with the settings you have
  • curiousperson01 Profile Picture
    118 on at
     
    still the same
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Can you please check the Fields property to make sure you have the "DisplayName" selected for both Primary and Search fields. 
    Here's a screenshot:
     
    For the Modern Combobox, you will be adding the DisplayName by clicking on "Add field" button:
    Hoping this will resolve you issue. Do share how it goes.
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

     
  • curiousperson01 Profile Picture
    118 on at
    Hi @nandit

    It is still the same as the screenshot I posted below today. 

    Also, can you please advise how to tag someone in a reply? I am using "@Nandit" but nothing pops up to tag.

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard