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 / Export PowerApps Colle...
Power Apps
Answered

Export PowerApps Collection to Excel Sheet

(0) ShareShare
ReportReport
Posted on by 96

Hello All,

 

Thank you for reading today and thank you in advance for your help/insights - it is much appreciated! 

 

What I need to do is take two collections and export them into an Excel file.

My scenario is that I am building a timesheet application as seen here:

Keegancurrie_0-1697401276107.png

 

The user inputs information into the gallery and I am using a "ForAll( Collect " on those selections/inputs to store them into a collection. I then want to take those collections and have Power Automate transform them into Excel files or if possible just take the combo boxes and save their selections to a newly created Excel sheet.

 

A more detailed rundown of what is happening:

 

So the reason I have two collections is because there are two aspects to this timesheet app. It functions as a timesheet for both employees

Keegancurrie_1-1697401554129.png

 

 and equipment 

Keegancurrie_2-1697401554146.png

 

 - the stacked rows will be invisible to the end user as they are automatically filled with info that relates to the first combo box - I just have those there while developing. The two galleries, one for equipment and one for employees populate two different collections with this: 

Keegancurrie_3-1697401554200.png

 

 and the corresponding collections look like this:   

Keegancurrie_4-1697401554171.png

 

 and this 

Keegancurrie_5-1697401554075.png

 

 The app's data source is Dataverse and I also have  a page that allows the management of those data tables that look like this: 

Keegancurrie_6-1697401554165.png

 

 Ideally, the two collections are then compiled through a button push into two separate Excel files that an administrator would then email directly to payroll.

 

I had them collected into collections purely because I thought that was what I had to do to deliver them to Power Automate. If I can accomplish this in a more simple way that would be awesome!

 

Thank you!

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,638 Super User 2026 Season 1 on at

    Hi @Keegancurrie ,

     

    Unfortunately the images are too small to be able to read anything on them, so it's hard to tell if there's a better way than using collections.

     

    In any case, using the JSON function, you can convert a collecting into a JSON which can then be passed to Power Automate: https://powerusers.microsoft.com/t5/Building-Power-Apps/Passing-the-PowerApps-Collection-to-MS-Flow/td-p/299054

  • Keegancurrie Profile Picture
    96 on at

    My bad @BCBuizer here is the post with updated pictures I think these will be easier to see.

     

    A more detailed rundown of what is happening:

     

    So the reason I have two collections is because there are two aspects to this timesheet app. It functions as a timesheet for both employees

    Example2.PNG

     

     

     and equipment 

    Example3.PNG

     

     

     - the stacked rows will be invisible to the end user as they are automatically filled with info that relates to the first combo box - I just have those there while developing. The two galleries, one for equipment and one for employees populate two different collections with this: 

    Example4.PNG

     

     

     and the corresponding collections look like this:   

    Example5.PNG

     

     

     and this 

    Example6.PNG

     

     

     The app's data source is Dataverse and I also have  a page that allows the management of those data tables that look like this: 

    Example7.PNG

     

     

     Ideally, the two collections are then compiled through a button push into two separate Excel files that an administrator would then email directly to payroll.

     

    I had them collected into collections purely because I thought that was what I had to do to deliver them to Power Automate. If I can accomplish this in a more simple way that would be awesome!

     

    Thank you!!

  • Verified answer
    BCBuizer Profile Picture
    22,638 Super User 2026 Season 1 on at

    Hi @Keegancurrie ,

     

    I think you'll find this video very helpful: https://www.youtube.com/watch?v=tQCBWMR7T64

     

    Instead of using collections, you can reference Gallery1.AllItems and Gallery2.AllItems directly in the JSON function (around the 5:30 mark in the video), for instance for Gallery1:

    ExporttoExcel.Run(JSON(Gallery1.AllItems,JSONFormat.IncludeBinaryData))

     

  • Keegancurrie Profile Picture
    96 on at

    Thank you for the quick reply @BCBuizer ! I really appreciate the info, but I am receiving these errors. JSON1.PNGJSON2.PNG

  • Keegancurrie Profile Picture
    96 on at

    I think adding 

     & JSONFormat.IgnoreUnsupportedTypes)) 

     to the back to make the code 

    ExportToCSV.Run(JSON(Gallery1.AllItems,JSONFormat.IncludeBinaryData & JSONFormat.IgnoreUnsupportedTypes))

     cleared up one of the issues, but not sure about the number of arguments thing

  • Keegancurrie Profile Picture
    96 on at

    @BCBuizer Sorry I actually figured it out I should have troubleshot more myself before posting again!

     

    I just rebuilt the flow and it randomly worked I think I must have done something wrong and adding the ignore unsupported was able to let it run for now. I'll continue on with it.

    Flow1.PNG

     

    Thanks again and sorry for all the spam!

  • Keegancurrie Profile Picture
    96 on at

    Thanks, @BCBuizer got it all working now! Much appreciate your input.

  • BCBuizer Profile Picture
    22,638 Super User 2026 Season 1 on at

    Hi  @Keegancurrie ,

     

    No problem at all and I learned something from you as well. 🤝

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 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard