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 / Using In and ExactIn f...
Power Apps
Unanswered

Using In and ExactIn for a text search in sharepoint. I need a delegable solution.

(0) ShareShare
ReportReport
Posted on by 3,347

I have used search statements like this:

 

 

ParNumText = "14323,91723,17391,20981"
varSearchText = "91723"

varSearchText

Filter(SQL_Database, varSearchText In PartNumText)
Filter(SharePoint_Database, varSearchText In PartNumText)

 

 

In the figurative example above, the record is returned for the SQLDatabase, and there is no delegation warning.

If the example is for the SharePoint_Database, it returns the same result, but delegation warning.  

 

Is there a way to do this for a sharepoint database, without having a delegation problem??

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,650 Moderator on at

    @martinav 

    All solutions for using 'in' with SharePoint are workarounds. Also, ExactIn is delegable to either source.

     

    2 SharePoint workarounds that I'm aware of are:

     

    1. Filter first. Use filtering options to reduce the number of records returned to under 2000, then use in. For example

     

    With(
     {
     wList: Filter(SharePoint_Database, [... some filter here that reduces no. records ...])
     },
     Filter( wList, varSearchText in PartNumText)
    )

    Note: take using With here. It can 'hide' the delegation warning but it can still be there to the unsuspecting user.

     

    2. Pull your data into a collection, then use 'in' and/or 'ExactIn' without issue. I have a method that pulls list data in dynamically. On my work network I can use this equation to calc the time taken to collect records

     

    (No. Records + 1100) / 1.35 = No milliseconds to return data, ie

     

    EddieE_0-1686607383038.png

     

    Hope that helps.

     

  • martinav Profile Picture
    3,347 on at

    @EddieE ,

     

    Unfortunately, I cannot do a staged filter.  The search will require access to the entire list.  outside of splitting up the record in batches of 2000, and doing a forall() over the batches, and Collect() the results.  But, that would be very expensive.  I was hoping to avoid making a duplicate SQL database, but I guess I cannot avoid it.  I have done this in other instances, but I was hoping for some improvements in the delegation protocol for SP.  Apparently, there has not.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard