Not sure if there is a way, but I am hoping.
I need to filter Office365Users() by department so that we are left with a list of approximately 150 employees in a specific group.
My other problem is I need to have the Filter based on the department containing 'facility'.
If I use this code, I can use a search box to only find employees in the department but we do not want to type a name, I just want to build a collection of all employees in the department.
Filter(
Office365Users.SearchUser({searchTerm: Trim(TextInput1.Text)}), "facility" in Department
)
The issue I have come across is the Filter() commands want to look for First or Last Name and not just filter by department. Any thoughts or workarounds?
Cheers