Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Power Apps Export Excel Design (Need some ideas)

Hello dude,


My boss want to have export collection to Excel within app, I know it is not easy to achieve, I came up with following procedures:

1. Write a Gallery for the Collection,

2. Write `Label.Text` for `Gallery.AllItems` in the form of CSV with a CSV ID,

3. Use Power Automate to generate a CSV file with ID and start timing with a hidden timer, binding the Power Automate to Apps,

4. Write a web mail service to catch the email attachment coming from Power Automate and generate a HTTP Post request,

5. Write an API service to catch the HTTP Post request, generate an Excel download page, url set as ID

6. Wait for certain seconds (to make sure server finished processed) on the hidden timer to trigger `Launch(URL)`




1. My company has certain limits, so it must to be done in Power Apps.

2. The reason that I don't just pass the CSV in `Launch(URL&CSV)` for easier HTTP Get request is because of URL length issue.

3. Not sure how in this case can I return the URL back to Apps, so I have to use the wait seconds strategy.


Sorry if the content is too complicate, potentially a really big project ahead of me, want to ask suggestions before start doing.


Thanks in advance!

Super User
Super User

You can use the JSON() function in Power Apps to convert your collection to JSON

Set(JsonCollectionTest, JSON(CustomGallerySample, JSONFormat.IncludeBinaryData))

Then pass the JSON to Power Automate and create your CSV from there with this example:

If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

See attached for a simple option within PowerAutomate. You may want to just have the Flow email the CSV to the user for simplicity sake, I could not find a good way to save the CSV from PowerApps. If you are on mobile exclusively, you can use the SaveData() function.

In Power Apps, your formula would look like this:

Set(JsonTest, JSON(CustomGallerySample, JSONFormat.IncludeBinaryData));

If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,282)