Skip to main content

Notifications

Community site session details

Community site session details

Session Id : sjaVVSbx3ejHfRK5U84HZA
Power Automate - Building Flows
Unanswered

Combine CSV files in Sharepoint folder to create one CSV file

Like (0) ShareShare
ReportReport
Posted on 10 Aug 2023 20:50:41 by 2

Hi,

I have 4 files with following naming convention in a Sharepoint folder, would want to combine/append these 4 files to one master file with name as 'abc_mmddyyyy_hhmmss.csv' with one Header row and then upload it back to same Sharepoint folder through Power Automate.

 

abc_mmddyyyy_hhmmss_South.csv

abc_mmddyyyy_hhmmss_Central.csv

abc_mmddyyyy_hhmmss_West.csv

abc_mmddyyyy_hhmmss_North.csv

 

Where mmddyyyy_hhmmss will be dynamic based on Daily runs

 

For example:

abc_08012023_111500_South.csv

abc_08012023_112000_Central.csv

abc_08012023_112500_West.csv

abc_08012023_113000_North.csv

 

abc_08022023_111500_South.csv

abc_08022023_112000_Central.csv

abc_08022023_112500_West.csv

abc_08022023_113000_North.csv

 

Any help is appreciated.

 

  • Pstork1 Profile Picture
    66,089 Most Valuable Professional on 10 Aug 2023 at 21:26:03
    Re: Combine CSV files in Sharepoint folder to create one CSV file

    If they all have the same columns you should be able to read all four files in and then do a union() on 2 arrays each time to combine them.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started