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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps Delegation S...
Power Apps
Answered

PowerApps Delegation Starts With

(0) ShareShare
ReportReport
Posted on by 25

Hi all, I am having some issues with filtering. I understand that when using SharePoint as a data source I can only use = Or StartsWith as delegable fields. 

 

I am still receiving a delegation error when using starts with. 

Here is the formula - 

Filter(
'CRM Customer Portal',
If(
IsBlank(FilterTextName.Text),
false,
StartsWith(
'First Name' & Surname,
FilterTextName.Text
)
) && If(
IsBlank(FilterTextAddress.Text),
false,
StartsWith(
'Primary Address',
FilterTextAddress.Text
)
)
)

wardeee5_0-1625476397413.png

 

I am trying to have my gallery empty until somebody searches for a persons name or address. As there is 10000 records in the SharePoint List and I don't want to hinder the apps performance. Ideally I don't want to use = as I don't want people to have to type the entire address when searching.

 

Please let me know if I am doing something wrong?

 

Categories:
I have the same question (0)
  • VenuR Profile Picture
    12 on at

    Non-delegable limits

    Formulas that can't be delegated will be processed locally. This allows for the full breadth of the Power Apps formula language to be used. But at a price: all the data must be brought to the device first, which could involve retrieving a large amount of data over the network. That can take time, giving the impression that your app is slow or possibly crashed.

    To avoid this, Power Apps imposes a limit on the amount of data that can be processed locally: 500 records by default. We chose this number so that you would still have complete access to small data sets and you would be able to refine your use of large data sets by seeing partial results.

     

    You can read more about delegation warnings below

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview#delegation-warnings 

     

    Work around for the delegation warning is collecting the required data locally and then using the same collection  as a data source instead of SharePoint list

  • wardeee5 Profile Picture
    25 on at

    Hi,

     

    That is really helpful. So is my issue the IsBlank that is causing the delegation warning? In the Microsoft Document it has IsBlank as a non delegable field.

    wardeee5_0-1625478620418.png

     

    So to get around the warning should I just allow PowerApps to return the 500 records and then do the required filter? Instead of me wanting the gallery to be blank?

     

  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @wardeee5 

     

     To avoid delegation error, you need to rethink your formula a little bit. Something like:

    If( 
     IsBlank(FilterTextAddress.Text) || IsBlank(FilterTextName.Text),
     Blank(),
     Filter(
     'CRM Customer Portal',
     StartsWith(
     'First Name',
     FilterTextName.Text
     )
     && 
     StartsWith(
     'Primary Address',
     FilterTextAddress.Text
     )
     )
    )

     

     Hope it helps !

  • wardeee5 Profile Picture
    25 on at

    Thank you very much, I have had a rethink and managed to think of a better way and no more delegation warning! Thank you for your help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 321

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 311 Super User 2025 Season 2

Last 30 days Overall leaderboard