AMFTF: Showing all SharePoint Online list items in a gallery

This blog post is part of a series called AMFTF (a message from the field) containing short blog posts about a best practice, a functionality, a how-to and/or something just worth writing a blog post about. Todays topic is about showing all SharePoint Online list items in a gallery.

In the PowerApps community, from time to time a question is asked about how to exceed the item limit (500 by default, minimum 1 and maximum 2000) for a SharePoint list.

When I see this, I often wonder if that person really wants their fellow employees to scroll for hundreds of items in a gallery? I personally don’t and prefer creating a solution with filtering, sorting and if possible searching.

But is it possible? Yes, it is possible to scroll through all items from a SharePoint list in a gallery. What you need to know is that you:

  1. must add the data source directly to the gallery.
  2. can only use functions which are delegable for that data source.

With these restrictions, even a formula like SortByColumns(Filter('SPList', Status = "Open"), "Modified", Descending) will show all items.

What has been “said” above also counts for other data sources like SQL Server and the Common Data Service. With SQL Server even more functions are possible.

References:

Leave a Reply

Your email address will not be published. Required fields are marked *