I have a list called SalesTeam, within that list I have a column for Hiring Manager (Person) and a Column for Office(Choice). I am trying to build a gallery in PowerApps in such a way that
a. If logged in user is Hiring Manager he can only see items that he/she is hiring Manager of.
b. If logged in user is recruiter he/she can see all items related to his/her office.
c. there is a searchbox, and use that to search some columns in list
I can get the logged in user info Onstart of the app.
This is what I have and I am lost now, please help.
Filter(
'SalesTeam',
(IsBlank(TextInput2.Text) || TextInput2.Text in 'Office'.Value || TextInput2.Text in TagNum|| TextInput2.Text in 'Request Received'|| TextInput2.Text in 'Request Status'.Value || TextInput2.Text in "AreaofOp")
),
varSortColumn,
varSortDirection
)