cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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? 


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.

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,727)