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

Community site session details

Session Id : oMxwqt9TME9evJWS4V8K8l
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 29 Oct 2019 09:42:58 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? 


I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 30 Oct 2019 at 13:35:59
    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 30 Oct 2019 at 01:43:33
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 786 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 724 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 290 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete