Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Convert html table to text and save to txt file gives random break lines

(0) ShareShare
ReportReport
Posted on by

Hi Flow people :cathappy:
I am trying to automatically list files in Teams folder since there is no search option in teams, but you can crtl+F and search in txt files.
My flow looks like this:
Capture1.PNG
The problem is, that the "Html to text" function returns text with some weird line breaks so the file is totally unreadable. When I save it as html, it looks perfectly fine (with content from "Create HTML table").

This is how the txt file looks like in Teams:
Capture2.PNG
"Create HTML table" returns correct lines with files path and names, for example:

 

 Delte dokumenter/General/All files list.html 
 Delte dokumenter/General/image form bss.jpg 
 Delte dokumenter/General/New Text Document.txt 

 

"Html to text" returns:

 

 Delte dokumenter/General/All files list.html Delte
dokumenter/General/image form bss.jpg Delte dokumenter/General/New Text
Document.txt

 


Any ideas? 


  • Community Power Platform Member Profile Picture
    on at
    Re: Convert html table to text and save to txt file gives random break lines

    What exactly do you mean by trying different html table? 
    The flow is creating a new one every time it runs.

     

    To be clear: you are creating a txt file with output from "html to text" and you are getting a nice file with folder paths like this? :
    /folder1/file1.jpg
    /folder2/folder22/file2.txt

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Convert html table to text and save to txt file gives random break lines

    Hi @Anonymous ,

     

    I have made a test on my side and don't have the issue that you mentioned with a random break lines.

    Please take a try with a different html table to see if the issue still exists.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1