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 collection to l...
Power Apps
Answered

Export collection to local stored Excel file

(0) ShareShare
ReportReport
Posted on by 39

Hi  - 
Been looking around on various threads, but couldn't find anything that specifically solves my issue.

 

Need a way for the users to export a collection to a specific cell-range in an Excel (desktop) workbook. 

I also need to find a solution to open the stored Excel file directly for the app itself. Open it on Excel Online will not do.

 

Been experimenting with Flows to create a CVS stored on SP & the Launch() function, but wasn't able to proceed further. 

 

Thanks 

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    There is no function or feature available to export the collection into an Excel file directly within PowerApps only.

    We could save the file into a local file with the SaveData function or Export control, but the file format is restricted to only be available within PowerApps.

     

    Wokring with Excel file requires there is a connection built directly under PowerApps, and currently there is no possible workaround that I am aware of to generate an Excel connection when the App is running.

     

    So the situation here is, even if the collection could be saved into Excel CSV file through Microsoft Flow integration, there is no way to display/load the data into PowerApps directly.

     

     

    Please consider rise this as an idea under PowerApps idea fourm, if you would like to have a better experience when working with Excel in PowerApps

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Regards,

    Michael

  • Verified answer
    RichardvdPool Profile Picture
    26 on at

    Hi,

     

    I've managed to export a collection within PowerApps to both email, a Power BI dataset as well as a Excel file on teams. You can do this using the concat function in conjunction with substitute to create a jsonstring and then passing that string to flow. In flow you can further parse the jsonstring and do whatever you want with the collection.

     

    Regards,

     

    Richard van der Pool

  • RI-16021208-0 Profile Picture
    12 on at

    Hello,

     

    I just figured out a way to do this recently but the original data is stored in a SQL DB.  I get the data that I need from the DB into a collection which has the same field names as that in the SharePoint list so its easy to push to ex:

     

    ClearCollect(CollectionName, ShowColumns('[dbo].[TABLENAME]', "Field1", "Field2", "Field3", "Field4" ))

     

    Then I have a button that when pressed first deletes all of the entries in the SharePoint list, writes the collection with the latest values up to the SharePoint list then downloads an .iqy file which I have stored in a document library which then displays all of the contents in the excel file.  The .iqy file I got by going to the SharePoint list and clicking the Export to excel button then just saved it to a document library then point to the file.  The onSelect property for the button is:

     

    RemoveIf(SharepointListName, !IsBlank(SharepointListName));

    Collect(SharepointListName,CollectionName);
    Download("https://company.sharepoint.com/sites/sitename/exportdocumentlibrary/export.iqy")

     

    If the SharePoint list is the only copy of the data then storing the .iqy file in a document library then having a button running the Download command pointing to the file should do it.

  • JarbasMartinho Profile Picture
    52 on at

    How do I get the url from iqy? I tried here on a list of mine and I didn't get it. Can you help me?

    https://xxxx.sharepoint.com/sites/Telebalho/Lists/ls_export_excel/

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 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard