Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

More than 5000 records in PowerApps form on export button click

Hi,

I have one data source like (SharePoint or SQL), That table having 6000 records. All the records I'm getting from collection (Using 3 collection, each collection having 2000 records).

Screen On Visible:

Concurrent(

ClearCollect(
colUpto2000,
Filter(
Test,
Count <= 2000
)
),
ClearCollect(
col2001To4000,
Filter(
Test,
Count > 2000 And Count <= 4000
)
),
ClearCollect(
col4001To6000,
Filter(
Test,
Count > 4000 And Count <= 6000
)
)
);
ClearCollect(
MyRecord,
ShowColumns(
colUpto2000,
"ID",
"Title",
"Count",
"Test"
),
ShowColumns(
col2001To4000,
"ID",
"Title",
"Count",
"Test"
)
,ShowColumns(
col4001To6000,
"ID",
"Title",
"Count",
"Test"
)
);

 

In my scenario on PowerApps form, On button click exporting those records to excel.

On Button Click:

ExportExcelFlow.Run(
JSON(
Sort(MyRecord,Count,Ascending),
JSONFormat.IncludeBinaryData
))

Actually I exported 4463 records to excel through Power Automate flow (On button click calling power Automate flow). My issue was, If I'm using more than 4463 records then button click is not working which means workflow not trigger.

 

Is any limitation to execute Power Automate flow from PowerApps?

Any help will be greatly appreciated.

Thank You.

 

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hi @TSundar ,

 

What are you using in you Flow to collect the data in Excel?


Have you turned on the Pagination on the connector? If your Threshold is set to 4463, you have to change it to suite your needs.

 

You can find more information here: https://www.c-sharpcorner.com/article/retrieve-more-than-default-number-of-rows-of-data-from-excel-u...

Hi @PTBBSolutions ,

Thanks for your reply and sry for my late response. In my flow I didn't use excel component, refer below screenshot.

TSundar_0-1636962556014.png

I have export in csv format.

 

Now I got one solution, I changed one parameter to multiple parameter like passing one collection to multiple collection (Each collection having 2000 records). Based on record count dynamically create collection and passed to Power Automate flow.

Refer my code,

Screen On visible:

"_count" is my int variable  (Value is Source record count/2000)

Switch(
_count,
1,
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
2,
Concurrent(
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col2001To4000,
ShowColumns(
Filter(
Test,
Count > 2000 And Count <= 4000
),
"ID",
"Count",
"Test"
)
)
),
3,
Concurrent(
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col2001To4000,
ShowColumns(
Filter(
Test,
Count > 2000 And Count <= 4000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col4001To6000,
ShowColumns(
Filter(
Test,
Count > 4000 And Count <= 6000
),
"ID",
"Count",
"Test"
)
)
),
4,
Concurrent(
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col2001To4000,
ShowColumns(
Filter(
Test,
Count > 2000 And Count <= 4000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col4001To6000,
ShowColumns(
Filter(
Test,
Count > 4000 And Count <= 6000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col6001to8000,
ShowColumns(
Filter(
Test,
Count > 6000 And Count <= 8000
),
"ID",
"Count",
"Test"
)
)
),
5,
Concurrent(
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col2001To4000,
ShowColumns(
Filter(
Test,
Count > 2000 And Count <= 4000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col4001To6000,
ShowColumns(
Filter(
Test,
Count > 4000 And Count <= 6000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col6001to8000,
ShowColumns(
Filter(
Test,
Count > 6000 And Count <= 8000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col8001to10000,
ShowColumns(
Filter(
Test,
Count > 8000 And Count <= 10000
),
"ID",
"Count",
"Test"
)
)
),
6,
Concurrent(
ClearCollect(
colUpto2000,
ShowColumns(
Filter(
Test,
Count <= 2000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col2001To4000,
ShowColumns(
Filter(
Test,
Count > 2000 And Count <= 4000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col4001To6000,
ShowColumns(
Filter(
Test,
Count > 4000 And Count <= 6000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col6001to8000,
ShowColumns(
Filter(
Test,
Count > 6000 And Count <= 8000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col8001to10000,
ShowColumns(
Filter(
Test,
Count > 8000 And Count <= 10000
),
"ID",
"Count",
"Test"
)
),
ClearCollect(
col10001to12000,
ShowColumns(
Filter(
Test,
Count > 10000 And Count <= 12000
),
"ID",
"Count",
"Test"
)
)

  

On Button Click:

ExportExcelFlow.Run(
JSON(
Sort(
col4001To6000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
),
JSON(
Sort(
col2001To4000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
),
JSON(
Sort(
col6001to8000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
),
JSON(
Sort(
col8001to10000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
),
JSON(
Sort(
colUpto2000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
),
JSON(
Sort(
col10001to12000,
Count,
Ascending
),
JSONFormat.IncludeBinaryData
)
)

 

Finally I got this solution, If you have any other solution please share to me.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors