Announcements
Hi,
We have 2 Departments in AAD. (Staff/Students). What´s wrong with my filter/search ? Can´t get this working.
If(!IsBlank(Trim(TextSearchBox.Text));Office365Users.SearchUser({searchTerm: Trim(TextSearchBox.Text);Filter(Office365Users.SearchUser({searchTerm:""}),Department = "Staff");top: 15}))
@ritzadog , try:
Filter(Office365Users.SearchUser({searchTerm:Trim(TextSearchBox.Text),top:15}),Department="Staff")
------------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solutionIf you like my response, please give it a Thumbs Up.
Hi, @ritzadog
You can change to this:
Filter( If( !IsBlank(Trim(TextSearchBox1.Text)), Office365Users.SearchUser( { searchTerm: Trim(TextSearchBox1.Text), top: 15 } ) ),Department= "Staff")
Thank you @Ngo-Cong-Tuyen - This worked fine and solved my problem!
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 335 Most Valuable Professional
11manish 165
MS.Ragavendar 96 Super User 2026 Season 1