Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

Quick way to export SharePoint list to Excel file using Power Automate

Posted on January 20, 2021April 14, 2021 by Tom

“I’m trying to automate export of SharePoint list into an Excel file, but Power Automate takes ages to finish. How can I make it faster?”


Exporting SharePoint list items into an Excel file can be very time consuming. You must loop through all items and add each of them as a new row into the Excel file. Especially if you have big lists with thousands of items it can take hours. So, is there a faster way?

Create .csv file instead

You can create .csv file instead of an Excel file. CSV file has simpler format than an Excel file, but it can be opened in the Excel application in the same way. And due to its simple format the list can be exported much faster than into an Excel file. Power Automate has even a dedicated action to create a .csv file from an array. It’s called ‘Create CSV table’ and the input must be an array. Then you can select if you want to export all columns (Automatic) or only some of them (Custom).

power automate export list excel csv

The example below will process all items returned by the ‘Get items’ action and create a .csv file with only 3 columns.

power automate export list excel csv

The output from the ‘Create CSV table’ action can be then used as a content for a new .csv file.

Summary

You should ask yourself if you really need an Excel file. It’s much easier, and faster, to create a .csv (comma-separated values) file in Power Automate. Instead of adding rows one by one into an Excel table, you can process the whole array with all items at once.

But if .csv is not an option and you need an Excel file, then there’s no solution to make the export faster. Power Automate can add the rows only one by one and that operation takes some time.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

13 thoughts on “Quick way to export SharePoint list to Excel file using Power Automate”

  1. Sumit says:
    October 18, 2021 at 6:47 pm

    Hi, Thanks for your post.

    But is there any step I can replace the csv exported file with new file. I dont want multiple files to be saved . Everyday there should be new exported file with updated data.
    Currently my flow gets failed because the csv file with same name already exist.
    Please suggest.

    Reply
    1. Tom says:
      October 20, 2021 at 7:41 pm

      Hello Sumit,
      take a look on this older article: https://tomriha.com/how-to-update-not-replace-an-existing-file-in-power-automate/. If the creation fails, continue with update of the existing file.

      Reply
  2. Barend says:
    February 10, 2022 at 3:21 pm

    Hi there, great post!

    Any idea how I can export the values only for managed metadata fields?

    Tx in advance.

    Reply
    1. Tom says:
      February 13, 2022 at 6:29 pm

      Hello Barend,
      the managed metadata field value contains the term in format Value|TermID. As such, you’ll need the split(…) expression to remove the TermID part and keep only the Value, e.g.
      split(item()?['ManagedMetadataColumnInternalName/Value'],'|')[0]

      Reply
  3. Stephanie says:
    February 17, 2022 at 9:00 pm

    You’re a life saver…. I was struggling with how to put an .xlxs file on sharepoint.. I found many other videos but nothing did what I wanted to do… with your suggestion that we use a .csv file instead, it became so simple.. Thank you.

    Reply
  4. Kamil says:
    March 6, 2022 at 10:27 pm

    I have followed the above instruction but I keep getting an error while testing the flow: “The ‘from’ property value in the ‘table’ action inputs is of type ‘String’. The value must be of type ‘Array’.”

    Any ideas how this can be fixed? I just cannot simply change it as the data I am trying to save onto csv file is retrieved from FORMS outcome.

    Reply
    1. Tom says:
      March 9, 2022 at 8:02 pm

      Hello Kamil,
      the solution is intended to export a whole SharePoint list into .csv file. If you’re trying to save Forms responses into an Excel file you can use the ‘Add a row’ Excel action.

      Reply
  5. Wayne says:
    April 28, 2022 at 10:43 am

    Hi Tom,
    Thanks for your sharing.
    My problem is that I can’t find the “DisplayName” for the person field value in the Dynamic Content, so the csv file returned with whole “@odata.type” content. How can I get the correct DisplayName returned in the person column?
    Thanks a lot in advance.

    Reply
    1. Tom says:
      May 3, 2022 at 8:02 pm

      Hello Wayne,
      if there’s no DisplayName then I guess it’s a multiple people picker column – you’ll have to use the solution described here: https://tomriha.com/export-multiple-person-or-group-column-into-csv-table-in-power-automate/

      Reply
  6. Tyler says:
    October 27, 2022 at 7:47 pm

    Also if anyone really needs the output to be in an Excel format, this template can convert most CSVs to an Excel file in under 15 seconds…
    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-To-Excel-Table/m-p/1826096#M964

    Reply
  7. raks says:
    April 18, 2023 at 11:43 pm

    Above Flow by default, 100 items gets created in a CSV file. How if the SharePoint List item has more than 5000(eg 40000) items?and wants all records in CSV

    Reply
    1. Tom says:
      May 7, 2023 at 2:09 pm

      Hello raks,
      I never did that, maybe just enabling paging will help, maybe it’ll need multiple ‘Get items’ and then converting the outputs in a single .csv.

      Reply
    2. Sarah says:
      January 2, 2024 at 5:09 pm

      In the “Get Items” action, expand the advanced settings and set the “Top Count” to a number great than the number you need to return (5000 is the max).

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Still exchanging emails to get things approved?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy an automated, fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes