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 / Load multiple list dat...
Power Apps
Unanswered

Load multiple list data(more than 500) sharepoint list data on single gallery on canvas app

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi 

 

I want to load & search multiple sharepoint list data on single gallery on canvas app. I tied with collection to merge both list but its loading only 500 records in gallery due to delegation.

 

Is any other way to load data & search data on single gallery for more than delegation limit(2000) ?

 

 

Regards,

Lalit Kadam

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

    @Anonymous 

    Collections can only hold a number of rows equal to the delegation limit, essentially: 2,000 rows.

     

    Galleries do have the ability to show all the data but the trick is you have to connect it to the datasource directly.  It cannot be connected to a collection.

     

    Then we must talk about your choice of functions: are you referring to the SEARCH function in PowerApps?  Then no, you cannot use a SEARCH function to look past the 2,000th row any retrieve results because it cannot be delegated.

     

    The most used workaround for this is the STARTSWITH function which can be delegated and look past the 2,000th row.  But as the function name implies it only looks at the beginning of the text in a column so there is a limitation.

     

    If you must use the SEARCH function in your app you'll need to change your datasource to either the Common Data Service or SQL Server.  Both have the capabilities to use SEARCH and it can be delegated there.

     

    Link to SharePoint delegation reference:

    https://powerapps.microsoft.com/en-us/blog/sharepoint-delegation-improvements/

     

    ---
    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 for quick reply.

     

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @mdevaney 

    I believe the delegation limit applies to the datasource itself when using Collect() and ClearCollect().  However, there is no limit on the number of Items that can be collected when collections themselves are appended.   Moreover, once the final  collection is obtained, All PowerApps functions can be applied to that collection, including Countrow(), Search() etc without delegation restrictions. 

    So if the original list has > 2000 items and < 4000 items
    Collect(colFirst, Sort(SPlist,ID, Ascending);// will be limited to the first 2000 items and 
    Collect(colLast,Sort(SPlist,ID,Descending); //will be limited to the last 2000 items in the list'
    Collect(colAll,colFirst);Collect(colAll,colLast)// will contain 4000 items (with duplicates)
    
    Collect(colAll,colFirst);Collect(colAll, Filter(colLast, ID !in colFirst.ID))// should result in a list with between 2000 and 4000 items without duplicates. 

    The colAll collection could be used as the Items property of a gallery and a CountRows() function would be accurate.  If it were 4000, this would be a clue that the SPlist had more than 4000 items. 

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Drrickryp 
    Right, that is technically correct.  I just didn't want to send the user down the path of creating an iterative function with a timer.

     

    ---
    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."

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard