web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Retrieve 20K record - ...
Power Apps
Unanswered

Retrieve 20K record - Power Apps

(0) ShareShare
ReportReport
Posted on by

Hi,

 

We need to load a 20k record to the collection. We are storing data in the Dataverse table. it's more than 20K records. I need to get and load data to the collection. Currently, I am getting 2K records. Any idea on this.

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    What is the formula you are using to create the collection and add the desired record?

  • Community Power Platform Member Profile Picture
    on at

    Hi @Drrickryp ,

     

    I have created the View in Dataverse. So I am using that in Power Apps, it contains around 20K records.

     

    StrangeUser_1-1653465661827.png

    I am trying to load all those records in collection. So I can pass the data to Power Automate to create a excel.

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    I don't do anything with Power Automate so I can't help you there. @Pstork1 would more likely be helpful here.

  • C-Papa Profile Picture
    1,836 on at

    Hi, you don't need to collect the data in PowerApps to send to PowerAutomate to then create the excel. Instead if you set you trigger as PowerApps and then query the Dataverse table within PowerAutomate using the List rows connector, for example, you can then create a .csv table / excel from the data returned from the query. 

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    First, passing all that data to Power Automate probably won't work.  Is there a particular reason why you don't just access the data directly in Power Automate rather than trying to pass it from Power Apps?

     

    Second, even if you get all the data in Power Automate I don't think you'll be able to add it to an Excel Table.  Power Automate can't create Excel Tables that large.

  • Community Power Platform Member Profile Picture
    on at

    Hi @Pstork1 @C-Papa ,

     

    The reason I am using Power Apps is ,we need to get the Contacts table data which is in a different environment. We cannot connect to different environment in Power Automate, but it's possible in Power Apps.

    If we load 20K record in collection , we can split and pass the data to Power Automate to generate a excel or CSV file.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    If you use the Dataverse (legacy) connector you can attach to a table in a different environment from Power Automate. Type Dataverse in the flow actions search box and make sure you pick the one marked as legacy.

    image.png

  • Community Power Platform Member Profile Picture
    on at

    Hi @Pstork1 ,

     

    Thank you for your quick response, but I tried this too. but it's throwing an error. (Error : The action 'List_rows' has an aggregated page results size of more than '211766929' bytes. This exceeded the maximum size '209715200' bytes allowed.)

    Note : Contact table has more than 100+ columns. But I need only 10 columns only. In this Legacy connector, we don't have column selection also. ($select)

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Ok,  Then I guess we are back to Power Apps, but I still have some doubts whether you'll be able to send that much data to Power Automate.  Remember its going to transfer the data as a JSON array and that's going to be huge.  But here's what I think you will have to do.  To build the collection you'll need to build it in stages where each stage is below the max record count (I assume you've upped it to 2,000). The easiest way to do that will be to use a delegable function, with the view, to limit the number of records returned to less then 2,000.  Then do multiple calls pulling in up to 2,000 records at a time.  For example, one approach I've used is to filter the view using the FullName and StartsWith(). Then call that with a ClearCollect and StartsWith 'A'.  Follow that with 25 more Collect statements and startswith B-Z.  That should give you your full collection.  But it will take time and sending it to the Power Automate may timeout.  But its worth a try.

  • Community Power Platform Member Profile Picture
    on at

    Hi @Pstork1 ,

     

    I think I can follow the approach that you mentioned. I have 2 queries here.

    1) Do we need to modify the view for each Alphabet or can we manipulate in the Power Apps filter method? 

    2) Alphabet 'A' contains more than 2K data , will it be patched to our Collection. ?

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard