Hey there,
So we created a very basic "service request / work order" list in sharepoint. You know, problem description, name of person, a few other fields. One field is a people picker that is the agent its assigned to.
I am trying to create a powerAPP application for the technicians phones. I can click powerapp on the sharepoint list and it gives me an auto created application which is pretty good actually. The one change i want to make, is to FILTER the list by the agent that is assigned to the ticket. So it would take their login and filter the list based on the field. Then they would only see the work orders they ahve been assigned. Something like "where 'Assigned To' = CurrentUser". But i dont know the syntax at all, and internet searches are not helpful. It would also be helpful if you could filter out closed work orders as well.
Here is the current code, and below that my guess for how it would go. This is code from the BrowseGallery1 item and currently shows all service requests.
SortByColumns(Filter([@'IT - Service Request'], StartsWith(Title, TextSearchBox1.Text) ), "Title", If(SortDescending1, Descending, Ascending))
And below is what i was trying (which obviously is wrong because i dont know what i am doing and am not a programmer):
SortByColumns(Filter([@'IT - Service Request'], StartsWith(Title, TextSearchBox1.Text) where 'Assigned To' = CurrentUser ), "Title", If(SortDescending1, Descending, Ascending))
It would be nice if power apps just took my listview where i have this configured and i could just apply a listview to this list, but from my internet research that cant be done either.
any help appreciated.