cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Filter Office 365 users by CompanyName and OfficeLocation

Hi,

 

how can I filter office 365 users by OfficeLocation?, just show this value.

 

 

 show only users with values of "OfficeLocation" and add filters by name and Company Name

This is for all users: 

SortByColumns(UsuariosdeOffice365.SearchUser({searchTerm:TextSearch.Text});"DisplayName"; Ascending)  

 

Try with

SortByColumns(UsuariosdeOffice365.SearchUser({searchTerm:TextSearch.Text});"DisplayName"; Ascending)  && Filter(UsuariosdeOffice365.UserProfile().OfficeLocation; True)  &&  Filter(UsuariosdeOffice365.SearchUser({searchTerm: Dropdown.Selected});"CompanyName")


with errors.

 

Thanks.

 

COMPANY2.png

 

 

 

 

 

 

1 REPLY 1
Resolver II
Resolver II

Hi @jkmc,

 

Would you please share me the formula in the drop down controller?

 

Because I can’t find the “companyName” field in my AAD and the value of the “companyName” in PowerApps is blank.

 

The “companyName” is a read-only property within user’s profile, please check the following article for more details:

 

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user

 

Regards,

Zheng

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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