Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Translation Quality Feedback
Unanswered

How to combine content of multiple text files into an excel file

(1) ShareShare
ReportReport
Posted on by
Hi all,

Wondering if anyone can help. I am trying to build a power automate flow that takes text file attachments we receive via email each week, save these files into a SharePoint folder, and then combine the content of the text files into an excel document so that my colleagues can do further work on this.

I’ve been able to get some parts to work, but the bit I’m having trouble with is actually getting the content out of the text files and combining this into an excel file. My knowledge of json and variables is limited, and endless hours of googling has not proved useful :(

I should also note that we don’t have access to any 3rd party apps (which I’ve seen used in many YouTube videos), so I need to be able to do this directly with what Power Automate has to offer.

My flow so far looks like this:



Everything to do with getting the attachments from emails and saving them into SharePpoint works fine, its just getting the content out of the text files and combining them into an excel file I'm having trouble with and don't really know what to do next. 

Any helpers or pointers would be much appreciated !!
Categories:
  • Michael E. Gernaey Profile Picture
    36,141 Super User 2025 Season 1 on at
    How to combine content of multiple text files into an excel file
    Hi,
     
    1. You would need to give some details on these files, their format etc.
    2. I noticed that you are first writing the files to disk, and thats ok, not necessary, but ok.
    3. In your final Apply, where is that? Where are you getting the value from? Are you listing files in the new folder?
     
    Lets assume the data is the same per file., I do not see details as mentioned so I cannot be educated, but rather guessing whats there.
     
    Is the data in the files json, csv, tsv other?
     
    Once you share that it will be easy to help.

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,440 Most Valuable Professional

Leaderboard

Featured topics