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 / Add header in a text f...
Power Automate
Answered

Add header in a text file and turn it into xlsx

(0) ShareShare
ReportReport
Posted on by 116

Hi there, i have this txt file without header.

Z_BI_0-1652104476785.png

I would like to add an header like that : 

SITE, NR, DESC, DATE, HOUR

and put all the content in a excel file .xlsx

I prefer to do this in Power Automate Cloud not Desktop

Please help me

thank you very much

Categories:
I have the same question (0)
  • Verified answer
    takolota1 Profile Picture
    4,980 Moderator on at

    Hello @Z_BI 

     

    Is this something you have to routinely do, or is it a one-time task?

     

    You could create an XLSX file with a table and input your desired headings, then use a Get CSV or CSV Parser template to fill in that XLSX table with the CSV values: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191

     

    And if this is a routine thing, you could just keep an unfilled template file with your headers in SharePoint or Onedrive & have the flow make a copy of that template file to fill each time this runs.

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
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard