Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Filtering Office365 users not returning all users

(0) ShareShare
ReportReport
Posted on by

Hi

I have a multi select Combo Box with Items set to Office365Users.SearchUserV2({searchTerm:ComboBox2.SearchText,top:999}).value

This allows multiple users to be selected, and when the save button is pressed the results are written to a collection , and then patched to a dataverse table as a separate record for each user saved in the Operational Director column, along with an application name taken from a variable VarSelectedAppsRecord. This works ok, and I am able to select users without any problem, and save them to dataverse.

I then want to be able to edit the selection via an edit button, so I have set DefaultSelectedItems of the ComboBox2 to  Filter(Office365Users.SearchUser({top:999}),DisplayName in Distinct(Filter('Applications Database - OppDirs','Application Name'=VarSelectedAppsRecord.'Application Name'),'Operational Director'))

so that the ComboBox2 can be populated with the users names saved earlier. I have also set the items to  Office365Users.SearchUserV2({searchTerm:ComboBox2.SearchText,top:999}).value

so you can also select new users.

I then have a Gallery to display the results, i,e User Photo, Display Name , E-mail, and office, I have set the image property of the User Photo to - If(!IsBlank(ThisItem.Mail),Office365Users.UserPhotoV2(ThisItem.Mail),NoEmailImage) to get round the blank photo error that i got.

This is when I have a problem in that not all the users names are populated in the ComboBox2 , I have been looking into this and think that the issue is the limit of office365 only searching 999 users, so not all the users are found. I understand that there is an office365.searchusersV2 , which I was hoping might have a bigger limit, but I am unable to change the above filter to V2 and make it work. I am new to PowerApps and i am stuck as to how to get this to work, so any help would be appreciated.

Categories:

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics