web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with exporting da...
Power Automate
Suggested Answer

Help with exporting data from Multiple SharePoint Lists

(0) ShareShare
ReportReport
Posted on by
I am exporting data from a SharePoint List to a CSV file in a SharePoint folder, which works for a single list.
Used Get Items--
Site Address - Link of Sharepoint List
List Name - b2364e74-12d7-4a6c-8d61-7e86f863fb79
Limited Entries to Folder - /Repository
Include Nested Items - Yes

Question 1:
I have multiple SharePoint List links, and I need to select multiple folders (each containing a repository) to export all data into a CSV file. How can I achieve this?
Question 2:
How can I ensure that the saved CSV file replaces the existing one? I get an error when the file already exists.
 
Any other tip if I can add multiple links at once and get data from all of them where folder contains 'Repository' will be fantastic.
Attaching screenshot which is working for one link, 
 
Categories:
I have the same question (0)
  • Suggested answer
    Kannan_n Profile Picture
    509 Super User 2024 Season 1 on at

    To export data from multiple SharePoint Lists to a CSV file, you can loop through each list and append the data to a single CSV file.

    Here’s a step-by-step guide:

    1. Create a List of SharePoint List Links:

      • You can store all the SharePoint List URLs in an Excel file.

    2. Read the Excel File:

      • Add an action to read the Excel file containing the SharePoint List URLs.

    3. Loop Through Each SharePoint List:

      • Use an "Apply to each" action to loop through the SharePoint List URLs.

    4. Get Items from Each SharePoint List:

      • Inside the loop, use the "Get items" action to retrieve the items from the current SharePoint List.

    5. Append Data to CSV:

      • Append the data retrieved from each SharePoint List to a CSV file.

    6. Save the CSV File to SharePoint:

      • Save the CSV file to a designated folder in SharePoint.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard