web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert a .txt file to...
Power Automate
Unanswered

Convert a .txt file to a SharePoint list

(0) ShareShare
ReportReport
Posted on by 37

Hello everyone,
I have a txt file. like this,

Immagine 2023-08-03 113905.png

I would like to convert it to a SharePoint list, where the columns correspond to the letters in the .txt file, with Power Automate.

Thank you if anyone can help me

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,338 Moderator on at

    Hi,

    Your text file can be treat as CSV file using pipe as separaror char.

     

    Have a look to this article which shows how to consume CSV file and build JSON : https://www.tachytelic.net/2021/02/power-automate-parse-csv/?amp

     

    Just replace coma by pipe in the split line expression.

     

    Then you just have to use Create item action assigning correct value to related field.

     

    You don't have to transform your extrated data to JSON, but it is more readable than array indexes and field will be available in dynamic contents.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • MatildeBecherel Profile Picture
    37 on at

    Thanks for the reply but this doesn't work for me because the .txt file comes to me by email and with power automate I download it directly into a folder

  • SamLed Profile Picture
    2,338 Moderator on at

    You just have to adapt the way you get file, in article it comes from OneDrive, but you can obviously get a file from mail attachment, a sharepoint library or a folder. How to process the file doesn't change except for field separator which is "|" in your case.

     

    [Edit] you can also deal with file content just before you save it into a folder.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard