I have a screen that has a people picker field. I would like the user to start typing the name of a user and then user the Office365Users data to search for the entered text, but filter the results for folks in a specific department. For example, Julie may be a user in the company, but I would like the list to filter all the Julie's in a specific department.
I am currently using this logic on the people picker's Items property. Although it searches and shows the correct available matches, if I am changing a record, it will not assign the new value or if I am entering a new record, it will not write the selected value to the SharePoint list people column.
Filter(Office365Users.SearchUser({searchTerm:violation_IssuedBy.SearchText,top:3}),Department="department name here")