cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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

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? 


1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

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.

View solution in original post

Highlighted
Anonymous
Not applicable

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

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (3,520)