Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

(0) ShareShare
ReportReport
Posted on by 12

Hi gurus, I want to export SharePoint list data to CSV file for further data analysis. There are 132 records on the SharePoint list. After using the below flow:

katemeng_0-1661409623571.png

 

The records in CSV stopped at the 100th row started all over again:

katemeng_1-1661409639729.png

 

How can I adjust the flow to export the full SharePoint list? Appreciate your help!

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

    @katemeng  thats a tricky one, Get Item has limit of getting 5000 items, to fetch more than that, you need to use pagination, there are few blogs out there on how to get more than 5000 items from SharePoint list in flow, you can refer to below reference links. Please note if you need to get 10000 records, in a single flow run the flow performance will get affected, its always recommend to apply filter to Get Items to get only those items that you need to process. 

    https://alextofan.com/2019/08/22/how-to-get-more-than-5000-item-from-sharepoint-online-in-flow/

    https://www.tachytelic.net/2020/04/get-more-5000-items-sharepoint-power-automate/

     

  • katemeng Profile Picture
    12 on at
    Re: Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

    Hi @annajhaveri there are Chinese characters in the list, and will be messy code after exported. So I followed Solved: Create a .csv file that uses UTF-8 character encod... - Power Platform Community (microsoft.com) to add concat expression in the content. Now I understand the correct to be put is either "Output" or "concat". If I put both, I'll get twice 🙂

    katemeng_0-1661414346131.png

     

     

    The final question is how to export list with more than 100000 records?

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

    c@katemeng  in the file content parameter, you have concat expression as well as the output of Create CSV Table, why do you have that concat expression?

  • katemeng Profile Picture
    12 on at
    Re: Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

    Thanks @annajhaveri for your reply! Followed your advise I checked the "Get items" settings and enabled the Pagination to a larger number as threshold. After that I run the flow again, this time all 132 records are on the CSV file, but they appear twice:

    katemeng_0-1661411422655.png

    katemeng_2-1661412002807.png

     

    The file ends with 266 rows (should be 133 only). Do you know how to fix that?

    I also noticed the threshold limit is 100000. I have a larger list with about 200,000 records, do you know are there ways to export that to a CSV file?

    Thanks again!

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Question about exporting SharePoint list to CSV in OneDrive/SharePoint (missing records)

    @katemeng There is a default limit of 100 items for “Get Items”. You can change the limit by turning on pagination in Get Items action settings and specify number of items you need 

    annajhaveri_0-1661410859171.png

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow