Hi, I have created a Powerapps canvas app that uses a SharePoint list with about 1500 records as its database. In the gallery I want to show records that only belongs to the logged in user/coworker. The below code works fine for all users if they choose anything but "All except done" in the dropdown filter. For some users the "All except done" works also but others get no result, I believe this is because of the delegation warning that I get in Powerapps studio. How to fix this?
Sort(
Search(
If(
DropdownRingStatus.Selected.Result = "All except done";
Filter(
'SP list';
'Coworker email' = CurrentUser.Email And Ringstatus.Value<>"Done"
);
DropdownRingStatus.Selected.Result <> "All except done";
Filter(
'SP list';
'Coworker email' = CurrentUser.Email And Ringstatus.Value =
DropdownRingStatus.Selected.Result
)
);
TextSearchBox1.Text;
"Title";
"Lastnamn"
);
Title;
If(
SortDescending1;
Descending;
Ascending)
)