cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kumar9024021
Level: Powered On

Office365Users.SearchUser - Will collections work

Hi,

 

I am populating a dropdown in Powerapps with JobTitle Assistant Director. I have around 2300 users. I am able to successfully retrieve some users whose JobTitle is Assistant Director from the top:999 by using the below query.

 

Filter(Office365Users.SearchUser({searchTerm:"", top:999}), JobTitle = "Assistant Director").DisplayName

 

I updated the delegetable settings to 2000, still it queries only 999. Once i update the top to 2000 or 1000, it throws 404 error

 

Any workaround would be helpful

4 REPLIES 4
Dual Super User
Dual Super User

Re: Office365Users.SearchUser - Will collections work

Hey @Kumar9024021 

 

Can you try to update the query to:

Filter(Office365Users.SearchUser(), JobTitle = "Assistant Director").DisplayName

This will look in all the records while Top:999 was restricting the first 999 records from the Office365 connection. You can remove searchTerm if that is not required.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Kumar9024021
Level: Powered On

Re: Office365Users.SearchUser - Will collections work

Hi @yashag2255 ,

 

Yes. I already tried the below query. I am empty results always.

Hence , I updated the query to include top:999, it is atleast querying the 999 records and returning results.

 

Hence planned to move to collection, assuming delegation is an issue here. Also updated the delegation settings count to 2000 but its still the case.

Community Support Team
Community Support Team

Re: Office365Users.SearchUser - Will collections work

Hi @Kumar9024021 ,

The reason why you met this problem is that 999 is  Office365Users.SearchUser  function's limit, not delegation problem.

Changing delegateable limit is useless.

The 999 is the maximum value of user records retrieved from Office365Users.SearchUser() function at once. The user @JonFrost has faced same issue with you, please check the response from Microsoft Employee @

 

 

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Kumar9024021
Level: Powered On

Re: Office365Users.SearchUser - Will collections work

The 1st link i get access denied

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,241)