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 / How to combine content...
Power Automate
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 !!
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,974 Moderator on at
    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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard