cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Z_BI
Helper I
Helper I

Add header in a text file and turn it into xlsx

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

1 ACCEPTED SOLUTION

Accepted Solutions
takolota
Power Participant
Power Participant

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.

View solution in original post

1 REPLY 1
takolota
Power Participant
Power Participant

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,816)