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 / Need to combine CSV fi...
Power Automate
Answered

Need to combine CSV files so one becomes the Header

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We found an issue in QA; I need to add the first row (Row #1) of a CSV file to an already existing CSV file.

 
 

 

 

The first row looks something like this:
05, ,2021-01-25, ,BMECOL, ,750

How can I insert this as the first row to my already existing CSV file? It must be on the first row. I have googled until my fingers hurt :-). This is urgent to us. Thanks as always!
Mike Kiser

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Anonymous 

     

    I’m not in front of my pc right now but if you get the file contents via get file and literally create a compose with the header, followed by a return line and the dynamic content of the get file - file contents, you can then save the compose back to the original file as the new content.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Screenshot 2021-03-28 162803.jpgScreenshot 2021-03-28 162732.jpgHey DamoBird365! Thanks so much; I am not sure how to do that. Could you please give more detail? I have been killing myself all weekend on how to do this.  Thanks! Mike  I have one csv (different number of columns) and a 2nd CSV that I was to merge with the 1st column beginning with 05 on the first row. I really appreciate your help...thanks! Mike KIser

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Anonymous 

     

    Im using my mobile but the same idea applies.

     

    DamoBird365_0-1616966933584.png

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Anonymous 

     

    How are you getting on?

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello! Thanks for asking! I was put on an encryption task but back on this; I am getting ready to implement your solution; I wanted to get your opinion...I just got the other from our Microsoft Team here. What do you think about it working? My question was that I have to have one particular file appended to another and not which one comes first. I guess I can try them in serial instead of parellel. What are your thoughts @DamoBird365 . I love this forum; In other forum's I'm used to waiting days for a reply.

    Thanks again!
    Mike Kiser

    ewinkiser_0-1617134702989.png

     

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    I don’t see why you cannot get them in parallel? You know which file is which surely as it is defined by each action.

     

    I agree about this being a good community.

     

    Damien

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello again @DamoBird365 ! I understand what you are saying now. So you are right..it shouldn't matter which of the 2 runs first....I'll be trying it tonight (our schedule is a killer lol)....thanks again! Will let you know how it goes.....Thanks! Mike

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Good morning @DamoBird365 , it is looking close now, but for some reason it is putting a /r/n (an extra blank line) in between the items. Do you know how I can get those out? It is what is causing the space between the lines which our QA won't accept. Do you know of a quick way to remove the line space between the lines? And then I might be done :-).

    Thank you for your continued help! I'm almost there!
    Mike

     

    ewinkiser_0-1617199131227.png

    ewinkiser_1-1617199416903.png

     

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Anonymous 

    You need to look back at the history.  Is this already present in the original file(s) or are you seeing this only as a result of the merge?

     

    Damien

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I meant to add this  @DamoBird365 

    ewinkiser_2-1617201947587.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard