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 / Downloading data in ex...
Power Apps
Suggested Answer

Downloading data in excel from Dataverse table

(0) ShareShare
ReportReport
Posted on by 19
HI 
 
We have created a canvas app in power apps, we are trying to export the table pull on power app screen by creating a power automate flow. 
 
We have created below flow, which working fine on CSV :
 
  • Manual Trigger - which we will replace with Power app trigger 
  • Data verse - List row function
  • Initialize variable - type is array
  • Under for each -
    • Download a file or an image.
    • Append to array variable
  • Create CSV table
  • Create file in share point
 
We want to update the same to generate output in excel and we are not sure how to update the above flow. Going with the content available over internet, they are suggesting to create a blank excel file in share point or use open market connectors. We are not allowed to use both.
 
Could some one guide possible solution to download the dataverse data from power app in excel.
 
Regards
Mohit Jain
 
 
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
     
    It's exactly like with the CSV, but yes, you would want to have an Excel File (think of it as a template), where you would have either
     
    1. An Excel file that has no data or formatting in it, in SharePoint or OneDrive.
    -Then you will use the Copy Command Action to make a copy of it in the new location. You will then do everything you do above, except instead of writing to the CSV file data, you will write to a Table in a Sheet in the Excel you copied.
     
    Forget copying for a second, to write to Excel the easiest based on what you have
    -Iterate through Rows in Dataverse
    -Have a Table in Excel, that has headers and 0-X rows already (if its a template, then you have 0)
    -Use the Add Row to a Table action for Excel to write the data
     
    The reason I said forget the copy part for a second was to explain.... 
    -If you have a pre-created excel template, and you know the format of the data, then also add a Table with headers in the "empty" excel so that you do not have to create the Table in the Power Automate flow
    -If you do NOT know what the Table will look like in advance because they can export any Dataverse Table to excel, then the additional thing you have to do is use the Create Table Action so that when you loop through the data it will have a place to write the data
     
    -------Steps
    Before looping through Dataverse Data
    --Trigger Flow
    --Create a Copy of the File you have in advance into another location. You can use Copy Actions, or you can use GetFileContent first, then use Create File and use the content from the previous GetFileContent to create the new file
    --IF your file has a Table in it already
    ----Loop through your Dataverse data and use Add Row to a Table to write it to excel, since the file already has a Table in it, you can identify the columns etc at Design time
     
     
    --If your file is just blank
    ----Use Create Table in Excel to specify the Table Name, Sheet, and Range and Column Headers
    ----Now iterate through Rows
    -------Now because the Table is Dynamically Bound instead of Statically bound you will only see a property called item, instead of actual column names
    -----------Here you will use a json structure { ColumnName: Value } where you create a Name/Value pair so it knows where to write the data
     
    If you follow the above, either version depending on if you know the Dataverse Table in advance or not and if you put an EXcel Table into the file before hand or not, will decide if you statically bind or dynamically bind
     
     
     
    Final
    ---Trigger
    ---Copy/Recreate the Template file
    Optional(Create Table in Excel File)
     
    ---Iterate through Rows in Dataverse
    -----Add row to a Table Excel Action
    ------Optional(use JSON to define the Item Property if dynamic Table binding as you created it in the Optional Step Above
    ------Or just match the Dataverse Column data to Excel file Table Column 
     
     
    Done
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Suggested answer
    CU04120706-0 Profile Picture
    19 on at
     
    Is there any way we can do the same without saving any blank template, as this needs to be run on every month and all month data is kind of unique. This solution will add on additional step or additional flow to clear data in those file, which seems like non value add.
     
    Regards
    Mohit Jain
  • Suggested answer
    VGKolar Profile Picture
    51 on at

    Power Automate can create CSV files easily because CSV is just a text format. However, creating a true Excel (.xlsx) file requires either the Excel Online (Business) connector or an existing Excel template stored in SharePoint/OneDrive. Since both of these options are restricted in your case, Power Automate does not have a built-in action to generate a new Excel file from scratch.

    The .xlsx format is not a simple text file and it is a zipped package of multiple XML files. Power Automate cannot construct this structure without Excel connectors or templates. That’s why your flow works for CSV but cannot be converted directly to Excel under your current limitations.

    Given the restrictions, the practical solution is to continue generating CSV files, which open perfectly in Excel. If your governance policies later allow using Excel Online connectors or prebuilt templates, you can convert your CSV flow into an actual Excel-based export.


     

  • CU04120706-0 Profile Picture
    19 on at
    @VGKolar
     
    Thanks.. But this can be a improvement opprtunity to look for add excel or options in power platform so that it can work in professional restricted world :-)
     
    Will try something like this..Thanks
     
    Regards
    Mohit Jain
  • CU04120706-0 Profile Picture
    19 on at
     
    Can you please share the steps for Excel online connector, if possible? But we don't want a pre created blank excel file at sharepoint.
     
    Regards
    Mohit Jain
  • Suggested answer
    VGKolar Profile Picture
    51 on at

    Please follow the below recommended steps, as CSV is the only supported format under the given restrictions.

    Trigger a Power Automate flow from Power Apps (Power Apps V2).

    Use Dataverse – List rows to retrieve the data and enable pagination if required.

    Use Select to control column names and structure.

    Use Create CSV table to generate the CSV content.

    Use Create file (SharePoint) to save the CSV file.

    Return the file link back to Power Apps if required.

     CSV files open natively in Excel and are fully supported using standard connectors. If governance policies later allow Excel Online connectors or templates, this same flow can be extended to generate .xlsx output.


     

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