cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AG199978
Level: Powered On

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
Community Support Team
Community Support Team

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

Hi @AG199978 ,

 

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
Community Support Team
Community Support Team

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

Hi @AG199978 ,

 

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

AG199978
Level: Powered On

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
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

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