Hi, I have modified 'Help Desk' app to use for users to submit tickets after selecting Category, Sub Category, Attachment and description -
There are 2 admin teams who work on the tickets and they should see tickets on the basis of Ticket Sub-category e.g.
member of Team 1 should see only 'Sub-category A' ticket only
And member of Team 2 should see 'Sub Category B' ticket only
For this i have created 2 collections for Sub-categories and 2 separate collection for Admin team (Team 1, Team 2) and using below formula
If(isAdmin,
Sort(Filter(AllTickets,
If(MyProfile.Mail in AdminGroup1 && SubCategories in SubcategoryA, Sort(Filter(AllTickets,Created,Descending)),
(MyProfile.Mail in AdminGroup2 && SubCategories in SubCategoryB, Sort(Filter(AllTickets,Created,Descending)))))),
Sort(Filter(AllTickets,Author.Email = MyProfile.Mail || Author.Claims = MyProfile.UserPrincipalName),Created,Descending))
I have no clue why it's not working. May be there is silly mistake. Please help