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 / 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,847 Super User 2025 Season 2 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,847 Super User 2025 Season 2 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,847 Super User 2025 Season 2 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,847 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard