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 Platform Community / Forums / Power Apps / Filter a combo box to ...
Power Apps
Suggested Answer

Filter a combo box to only show certain email domain

(1) ShareShare
ReportReport
Posted on by 363
I have a combo box, Currently when searching for a user to assign a task it shows every single email address that my company has ever sent. I only want users from my company to be options. Right in the items section of the combo box I have this script.
 
Office365Users.SearchUserV2({searchTerm:Trim(Self.SearchText), top:10}).value
 
How would I filter out the results to only show lets say "autodesk.com"?
 
Below are the fields I have displayed in the combo box.
 
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    Can you explain what you mean by  I only want users from my company to be options.
  • colbyturybury Profile Picture
    363 on at
    Options meaning those people I work with are the only selectable option in the drop down list that can be selected.
  • Suggested answer
    ronaldwalcott Profile Picture
    3,862 Moderator on at
     
    You can only pass the user that you are searching for and select these values
     
     
    I assume that you want to find the users for a particular department or some other user property
     
    You would apply a filter to the results returned from the search
     
    In theory something like
     
    Filter(
        Office365Users.SearchUserV2({searchTerm: "", top: 100}).value,
        Department = Dropdown_Departments.SelectedText.Value
    )
     
    You refer to autodesk.com, not sure what that means but you need to identify the property that you want to search for ensure that it is populated in Actvie directory
     
     
     
    If this answered your question please mark it as such 
  • colbyturybury Profile Picture
    363 on at
    Sorry but I am looking for anyone in my organization. I figure I would filter by our company's email which is "pec1.com". 
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    Have you tested it with something like and it isn't working?
     
    Filter(
        Office365Users.SearchUserV2({searchTerm: "", top: 100}).value,
        EndsWith(Mail, "@pec1.com")
    )
     
    I used mail here because I don't know the name of the field containing the email being returned in your environment 
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    Something like this should work assuming that the email column is called Mail
     
    Filter(
        Office365Users.SearchUserV2({searchTerm: "", top: 100}).value,
        EndsWith(Mail, "pec1.com")
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard