cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jdblundell
Advocate I
Advocate I

Delegation Warning with SharePoint

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?

1 REPLY 1
RandyHayes
Super User
Super User

@jdblundell 

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,594)