Hello,
I am currently developing a Phone Directory PowerApp in which I can search for a user by DisplayName (First name or last name) and Department.
I currently have the Items property of the gallery set to:
If(
!IsBlank(Trim(SearchBox.Text)),
Filter(
Office365Users.SearchUserV2(
{
isSearchTermRequired: false,
top: 2000
}
).value,
AccountEnabled = true,
!IsBlank(JobTitle) && !IsBlank(Surname) && (SearchBox.Text in DisplayName || SearchBox.Text in Department)
)
)
I have several filters to not display users without a job title or a surname as this will allow me to search by DisplayName and Department however it is not returning any users past the letter "S".
If I change "isSearchTermRequired: false" to "searchTerm: SearchBox.Text" i am able to pull the entire list of users but not able to search by Department.
Any help is appreciated.
Thanks!