Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

Power Apps Search Function: Search a Gallery From a Text Box (With Delegation Fixes)

If you need a search box that narrows a gallery as people type, the Power Apps Search function is the one-line answer: point it at a table, the text box and the columns to look in.

So why do so many search boxes still miss records? On a SharePoint list, Search can’t be delegated. Past 500 items it quietly checks only the first 500 rows, and nobody sees an error.

In this tutorial, we’ll build a real search screen and use the Power Apps Search function on a 620-item SharePoint list. You’ll see where it works, where it silently fails, and the StartsWith and collection fixes I use instead.

The Sample List We’ll Use

Every example runs against one SharePoint list, Service Requests, on the SPGuides site. It holds 620 sample help desk requests, plus 3 test rows I added later, so the true count is 623.

  • Title: single line of text, like “VPN access #1505” or “Password reset #1017”. This is the column we search.
  • Status and Priority: choice columns (New, In Progress, Closed).
  • DueDate and RequestedOnText: a date column and a text column that holds dates.

The tricky rows are the ones past row 500. “VPN access #1505” is ID 506, so any formula that only looks at the first 500 rows will never find it. That’s the whole Power Apps delegation problem in one item.

Service Requests SharePoint list with Title, Status and Priority columns used for the Power Apps Search demo

Build the Demo App Step by Step

New to canvas apps? A canvas app is an app where you place every control yourself. Here’s the short path, and our guide to create a canvas app from a SharePoint list covers the automatic route.

Step 1: Open the maker portal. Go to make.powerapps.com and select Start with design on the Home page.

Power Apps maker portal Home page with the Start with design option highlighted

Step 2: Create a blank app. Select Create from blank, the canvas app option.

Create from blank canvas app option in the Power Apps maker portal

Step 3: Pick a layout. In Start with a blank canvas, choose Tablet. Power Apps Studio, the app editor, opens.

Start with a blank canvas dialog with the Tablet layout selected

Step 4: Add the data source. A data source is any place your app reads data from. Select Add data, type SharePoint and pick the SharePoint connector.

Add data pane in Power Apps Studio with the SharePoint connector found by search

Step 5: Connect to the site. Paste your site URL, for example https://yourtenant.sharepoint.com/sites/SPGuides, and select Connect.

Connect to a SharePoint site panel with the SPGuides site URL and the Connect button

Step 6: Choose the list. Select the Service Requests check box and select Connect. The list now shows under Data.

Choose a list panel with the Service Requests list checked before selecting Connect

Step 7: Insert the controls. On the Insert menu, add a Text input and rename it txtSearch in the Tree view. Then add a Vertical gallery named galSearch.

Three moves you’ll repeat all the time. To set a property, select the control, pick the property in the dropdown left of the fx formula bar, then type in the bar. To test, select Play at the top right, or hold Alt and click. Save with Ctrl+S.

How the Search Function Works

Here’s the syntax:

Search( Table, SearchString, Column1 [, Column2, ... ] )
  • Table: the list, collection or table to look in, such as 'Service Requests'.
  • SearchString: the text to find, usually txtSearch.Text. If it’s blank, Search returns every record.
  • Column1, Column2: one or more text columns. A match in any of them returns the whole record.

Three rules matter. The match can sit anywhere in the column, so “bert” finds “Robert”. It’s case-insensitive. And when nothing matches, you get an empty table, not an error.

Old posts wrap column names in double quotes, like "Title". Since Power Apps version 3.24042 you type the plain name. Quoted names are a common cause of the Search has some invalid arguments error.

Method 1: Search a Gallery From a Text Box

Use this when the list stays under 500 items, or when you need contains matching on a small table. Same Service Requests list, same txtSearch box.

Select galSearch in the Tree view, pick Items in the property dropdown, and type:

Search('Service Requests', txtSearch.Text, Title)

The gallery fills in as you type. Notice the small yellow triangle next to the gallery, though. We’ll come back to it in a minute.

galSearch gallery Items property set to the Power Apps Search formula with the yellow delegation warning

In Play mode I typed reset. Search returned Password reset #1005 (ID 2), #1017 (ID 17), #1029 (ID 31) and more, because “reset” sits in the middle of each title.

Preview of the search screen where Search finds Password reset titles and StartsWith returns nothing

How does this work?

Power Apps runs Search once per keystroke. For each row it checks whether the text in txtSearch appears anywhere in Title, ignoring case.

The gallery next to it uses StartsWith, and it stayed empty. No title starts with “reset”. That’s the one thing Search does better: contains matching.

To search more than one column, list them all. RequestedOnText is a text column too, so this works:

Search('Service Requests', txtSearch.Text, Title, RequestedOnText)

Important: Search only reads text columns. For a choice column like Status, use Filter('Service Requests', Status.Value = ddStatus.Selected.Value) instead.

Why Search Returns Nothing on a Big SharePoint List

Hover over that yellow triangle and Power Apps tells you exactly what’s wrong:

Power Apps delegation warning tooltip saying the Search part of the formula might not work on large data sets

Delegation means SharePoint runs the query and sends back only the matches. SharePoint can delegate Filter, equals and StartsWith on text, but Search isn’t on that list.

So Power Apps pulls the first 500 rows and searches only those. Here’s the proof on the same list. I typed VPN access #15:

Search gallery empty for VPN access #15 while the StartsWith gallery finds VPN access #1505 with ID 506

The Search gallery shows nothing, with no error. The matches are IDs 506 and up, past row 500, so Search never saw them.

The in operator has the same problem. CountRows(Filter('Service Requests', "VPN" in Title)) returned 42, but 53 titles contain VPN. Even the count is wrong, which our CountRows function guide digs into.

Method 2: Use Filter With StartsWith (Recommended for SharePoint)

Use this on any SharePoint list that has, or will have, more than 500 items. People usually type the start of a title anyway.

Select the second gallery, galStarts, pick Items and type:

Filter('Service Requests', StartsWith(Title, txtSearch.Text))

With “VPN access #15” typed, it returns VPN access #1505 (ID 506), #1517 (ID 518), #1529, #1541 and #1553. No yellow triangle.

Gallery Items set to Filter with StartsWith on Title showing VPN access #1505 and no delegation warning

How does this work?

StartsWith is delegable on SharePoint text columns. Power Apps sends the whole condition to SharePoint, and SharePoint checks all 623 rows.

It’s also case-insensitive, so “vpn” works too. StartsWith(Title, “VPN”) gave the right count, 52. Our StartsWith and EndsWith functions post covers the EndsWith trap.

So here’s the catch: StartsWith won’t find “reset” in “Password reset #1005”. If people need mid-title matches, use Method 3.

Pro Tip: To search two columns with StartsWith, join them with Or: Filter('Service Requests', StartsWith(Title, txtSearch.Text) Or StartsWith(RequestedOnText, txtSearch.Text)). Or is delegable on SharePoint.

Method 3: Search a Collection You Filtered First

Use this when you need contains matching and a delegable filter can shrink the list below 500 rows first. A collection is a table the app keeps in memory, so it needs no delegation.

Load the smaller set once, for example in the screen’s OnVisible property:

ClearCollect(colNewRequests, Filter('Service Requests', Status.Value = "New"))

On the Service Requests list that collection held 210 rows. Then point the gallery at the collection:

Search(colNewRequests, txtSearch.Text, Title)

How does this work?

The Filter on Status is delegated, so SharePoint returns all 210 New requests, not just the ones in the first 500 rows. Search then runs in memory on a complete set.

Important: ClearCollect itself still stops at the data row limit. If the filtered set is bigger than 500, load it in chunks, as shown in our Power Apps collection guide.

Raise the Data Row Limit (and When Not To)

The 500 comes from a setting. In Studio, go to Settings > General and find Data row limit.

Power Apps Settings General page with the Data row limit box set to 500

Microsoft’s delegation docs now say 1 to 10,000. But when I typed 2001 into Studio on 10/30/2026, it showed “This value needs to be between 1 and 2000.” So plan for 2,000 until your own Studio accepts more. A higher limit only moves the cliff and makes the app slower, so I keep it at 500.

Pro Tip: while testing, set the limit to 1. Every non-delegable formula then returns a single row, so you spot the problem before your users do.

Which Method Should You Use?

SituationUseWhy
List or collection under 500 rowsSearch(...)Shortest formula, contains matching
SharePoint list over 500 rowsFilter(..., StartsWith(...))Delegable, checks every row
Need contains matching on a big listDelegable Filter into a collection, then SearchSearch runs on a complete, smaller set
Choice or lookup columnFilter(..., Column.Value = ...)Search reads text columns only

For the bigger picture of when to use each lookup function, see Filter vs Search vs LookUp in Power Apps.

Things to Keep in Mind

  • Search on SharePoint fails silently past row 500. Fix: watch for the yellow triangle and switch to StartsWith.
  • A blank search box returns every record. Fix: that’s usually what you want for a search screen, so leave it.
  • Quoted column names come from the old syntax. Fix: type Title, not “Title”.
  • Search ignores choice, number and date columns. Fix: Filter on the column’s .Value or the value itself.

If you build apps like this at work, our Power Apps training course walks through search screens, delegation and SharePoint lists on real projects.

Want more search screens? These posts pick up where this one stops:

Frequently Asked Questions

What does the Search function do in Power Apps?

Search returns every record in a table where the search text appears anywhere in one of the columns you name. It’s case-insensitive, and a blank search text returns all records.

Why does Power Apps show a delegation warning on Search?

SharePoint can’t run Search itself, so Power Apps checks only the first 500 rows (the data row limit). Rows past that are never searched, with no error. Use Filter with StartsWith instead.

How do I search multiple columns in Power Apps?

List every text column after the search text, for example Search(‘Service Requests’, txtSearch.Text, Title, RequestedOnText). A match in any column returns the record.

How do I add a search box to a Power Apps gallery?

Insert a Text input named txtSearch, then set the gallery’s Items property to Search(‘Service Requests’, txtSearch.Text, Title), or Filter with StartsWith for a big SharePoint list.

Where is the official Search function reference?

Microsoft documents the syntax and examples in Filter, Search, and LookUp functions.

3 thoughts on “Power Apps Search Function: Search a Gallery From a Text Box (With Delegation Fixes)”

  1. Hi,
    it’s great work.
    I want to a help about search box of power app which will work like, if I write any word in search box, and it is available in list or column so result shows it valid, if this search word is not available in the column then result shows invalid.
    can you please help me in this regard,
    Thanks in advance

  2. This formula you provided just fixed my entire App. I couldn’t get the search and combo box to work together properly, as most instructions seem to only use filter instead of filter and search. Thank you! Items = Search(
    Filter(
    colEmployee,
    Department = drp_EmpDepartment.Selected.Value
    ),
    Text(txt_EmpID.Value),
    EmployeeID
    )

Leave a Comment