web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / sharepoint Filter Star...
Power Apps
Answered

sharepoint Filter StartsWith delagation large list warning

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a searchbox-textbox

I have Radio button with 3 choices

I have a gallery with the items set to below

The sharepoint list contains 4,888 rows

 

 

If(rdo_SearchFields.Selected.Value = "Escalation Id", Filter(t_pricing_escalation_master,StartsWith(Text(PRICING_ESCALATION_ID),txt_SearchText.Text)),
rdo_SearchFields.Selected.Value ="Account Name", Filter(t_pricing_escalation_master,StartsWith(ACCOUNT_NAME,txt_SearchText.Text)),
rdo_SearchFields.Selected.Value ="Account Number", Filter(t_pricing_escalation_master,StartsWith(ACCOUNT_NUMBER,txt_SearchText.Text)))

 

Getting a delagation alert because of the Startswith function ?

 

Can this be re-written to get around the issue

 

Dave

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous

     

    Actually, STARTSWITH is delegation friendly.  The problem is you are using the TEXT function.

     

    Instead of doing this:

    StartsWith(Text(PRICING_ESCALATION_ID),txt_SearchText.Text))

     

    Do this:

    StartsWith(PRICING_ESCALATION_ID,txt_SearchText.Text))

     

    And SET your variable as Text elsewhere in your app:

    Set(PRICING_ESCALATION_ID, Text(your_formula_here)


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks I keep copying and pasting old code and forget to delete that part !

     

    Thanks

    again

  • rbunge Profile Picture
    165 on at

    Hi Matthew-

     

    Not sure if something's changed, but I was under the impression Filter with StartsWith would be delegable... However, in trying to query a list with 5200 records, and setting the delegation limit in PA to 1, I only get one record.

     

    List column is Single line of text:

     

    rbunge_0-1623169763476.png

     

    This is my Items property for the list box control in the canvas app:

     

    rbunge_1-1623169806591.png

    Filter(SupplierLookup,StartsWith('Supplier Name',TextInput1.Text))

     

    I get back only one result, corresponding to the delegation limit I set to 1 (do this when coding apps to be sure I'm not running afoul of it, as MS doesn't always warn properly).

     

    According to the delegation table in the MS docs for SP data source, it should be delegable.

     

    Any ideas?

     

  • rbunge Profile Picture
    165 on at

    Following up to see if anyone might have any ideas... does it make any difference that it's the internal Title column (renamed to Supplier Name), perhaps?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard