I've built a simple PowerApps app to help our social team generate UTM parameters for their links based on several drop downs. It's a basic app that's tied to a SharePoint list where they can search and edit existing entries and add new ones as needed.
Right away I was getting the delegation warning on the Browse Gallery but based on what I read, it didn't seem like it would be a huge issue.
However, because of the size of our organization and the number of posts, they've quickly hit the 500 record limit and while the records still saved in the backend SharePoint
I've updated the limit to 2000 but I'm sure they'll hit that soon enough.
I'm wondering what are my options to improve the process or get around the record count ...
Here's the formula that the Browse Gallery is bumping on:
SortByColumns(Search([@'UTM Tracker'],TextSearchBox1.Text,"FriendlyName","Title"),"FriendlyName",If(SortDescending1,Descending,Ascending))
Is it possible to use a SharePoint list view to add some additional filters/limitations? Or is there a better formula to use?
As you are finding, Search is not a delegable function for SharePoint lists.
You mention using a view to limit the results...you can't do that from PowerApps, but you can bring that into PowerApps.
For example:
With({limitingItems:Filter('UTM Tracker', <limitingCriteria>)},
SortByColumns(
Search(limitingItems,
TextSearchBox1.Text, "FriendlyName", "Title"
),
"FriendlyName",
If(SortDescending1,Descending,Ascending)
)
In the above formula, add the delegable criteria that you would use in your SharePoint list view to limit the results.
So, perhaps you have an Open or Closed status column (for example) and you knew that there would never be more than 2000 Open items at a time, you could set your limitingCriteria to Status="Open"
This would limit the number of records in the limitingItems variable above and then perform your Search and sort against them.
That would get you what you want.
I hope this is helpful for you.
User | Count |
---|---|
159 | |
86 | |
68 | |
63 | |
62 |
User | Count |
---|---|
210 | |
151 | |
93 | |
81 | |
69 |