Hi Guys,
I am fairly new to PowerApps and working on creating an application for one of my Teams, it is a Case Management System and I have created a Search Cases page that lists all Cases in a Gallery with a set of Filters to filter down the list so that users can find a specific case.
The gallery is working as intended but I am receiving a delegation warning with the StartsWith functions. Now I am not expecting for there to be anywhere close to 500 cases but I would like to get around the delegation warning but cannot work it out. My Filter function is as follows;
SortByColumns(
Filter(
Cases,
IsBlank(radFiltersStatus.Selected.Value) || IsEmpty(radFiltersStatus.Selected.Value) || CaseStatus = Text(radFiltersStatus.Selected.Value),
IsBlank(txtFiltersReference) || StartsWith(Reference, "CSE-" & txtFiltersReference.Text),
IsBlank(ddFiltersCaseType) || CaseType = ddFiltersCaseType.Selected.Title,
If(radFiltersUserType.Selected.Value = "Employee", StartsWith(EmployeeName, txtFiltersUserType.Text),
radFiltersUserType.Selected.Value = "HR Advisor", StartsWith(HRAdvisor, txtFiltersUserType.Text),
radFiltersUserType.Selected.Value = "Created By", StartsWith(CreatedBy, txtFiltersUserType.Text)) || IsBlank(txtFiltersUserType)), locSortBy, If(locSortBy = "StartDate", Descending, Ascending))
I put this formula together using a series of YouTube guides/videos as reference so it may not be the best written formula,
Is there anyway that I can rewrite this formula to avoid the delegation warning? I have looked a lot online and cannot work it out and this would be extremely useful for best practice going forward,
Thank you in advance

Report
All responses (
Answers (