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 Automate / How to merge CSV Files
Power Automate
Answered

How to merge CSV Files

(0) ShareShare
ReportReport
Posted on by 53

Hello,

 

I need to able to merge all the downloaded csv files in my flow and combine them into 1 file. But I need to keep the header. All the files have the same header and I just need to have 1 header in the combined file. Also, there are some excess commas at the end of each line, how can I remove that as well?

 

Thanks in advance.

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    For each file

    read csv

    write csv to new text file

    Save text file as csv

    end (for each)

     

    for replacing, you could replace comma and new line with just new line

     

    replace:

    %’,

    ‘%

    with %’

    ’%

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 308 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 171 Super User 2026 Season 2

#3
Haque Profile Picture

Haque 137 Super User 2026 Season 2

Last 30 days Overall leaderboard