Hi,
I have a Powerapp, where I need to populate the approver dropdown with JobTitle "Director" and Department "Sales".
I have these details being maintained in AzureAD as well as SharePoint userprofiles. I used the below formula in Items property of the approver dropdown.
Filter(Office365Users.SearchUser(),JobTitle="Director"&&Department="Sales").DisplayName
However the approver dropdown returns empty. If i tweak the above formula and just specify the Department, it returns 8 users successfully.
Filter(Office365Users.SearchUser(),Department="Sales").DisplayName
I have an admin access, hence shouldn't be an access issue. I explored somewhere that Office365Users can only query 1000 records at a time. My AzureAD has 2500+ records and hence might be the issue. Any inputs on tackling this would be helpful.