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 / Loading 60,000 SharePo...
Power Apps
Unanswered

Loading 60,000 SharePoint List Items

(1) ShareShare
ReportReport
Posted on by

Loading 60,000 SharePoint List Items

1.I create an Excel File, 1 Column only, value from 1 to 2000
2.Import SpreadSheet To SharePoint List name it Loops
3.My sample data using Excel File 60,000 rows, data
exported form table FactInternetSales Database AdventureWorks2012
4.Import SpreadSheet To SharePoint List name it InternetSales
5.In Internet Sales add a new column type number
6.Create a Flow (Trigger Manual) name it AddColumn N, SharePoint Get Items, Apply To Each, inside use SharePoint Update Item, Update N Column : int(div(item()?['ID'],2000))
7.Run Flow AddColumn N, it might take hours (6-8 hours)
8.Create a Flow (Trigger by PowerApps) name it RowsCount
9.Add Send HTTP request to SharePoint (ListName=InternetSales)
Uri :_api/web/lists/GetByTitle('[ListName]')/ItemCount
10.Add Respond to PowerApp. Add new Number Output name it RowsCount. Expression : body('Send_an_HTTP_request_to_SharePoint')['d']['ItemCount']

11.Create New PowerApp name it GetInternetSales
12.File - Settings - Advanced Settings - Value :2000
13.Save. Publish. Close
14.Open again
15.Set App - OnStart
ClearCollect(MyIS,Filter(InternetSales,ID=0));
Set(varRowsCount,0);
Set(varLoopEnd,0);
15.Drag 1 Button
16.Set OnSelect :
ClearCollect(MyIS,Filter(InternetSales,ID=0));
Collect(MyIS,Filter(InternetSales,N=0));
Set(varRowsCount,InternetSalesGetRowsCount.Run().rowscount);
Set(varLoopEnd,RoundUp(varRowsCount/2000,0)-1);
ForAll(Filter(Loops,Number<=varLoopEnd),
Collect(MyIS,Filter(InternetSales,N=Number));
);
17.Drag 1 Data Table
18.Set Items : Sort(MyIS,ID,Descending)
19.Thats It!

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    I get that it works.  But the bigger question is Why?  As you point out following this will take over 8 hours just to load the data.  Better to either learn to do delegation in SharePoint or use a better data source with better delegation support like SQL or CDS.  Trying to handle 60,000 items inside PowerApps is an exercise in futility.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @nugysemail ,

    Thanks for your sharing. The solution you provided is perfect, which would help many users who facing Delegation issue with PowerApps formulas.

     

    If you have any questions about PowerApps, please feel free to reply here.

     

    Best regards,

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard