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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert HTML file to t...
Power Automate
Unanswered

Convert HTML file to txt or csv

(0) ShareShare
ReportReport
Posted on by 16

Hi Everyone,

 

Could you please help me with how to convert the HTML file created by SAP SM36 to a TXT or CSV file?

 

Erhan

Categories:
I have the same question (0)
  • nmk Profile Picture
    193 on at

    Hi,
    I am not sure how your html looks like but did you try HtmlToText action ??

     

    https://docs.microsoft.com/en-us/connectors/conversionservice/

     

     

  • bekkaye99 Profile Picture
    16 on at

    Hi NMK

    Thank you for your information. After your comment I tried it but convert output again HTML. You can find the HTML file example below. Could I have done something wrong?

     

    test2.pngtest.png

  • nmk Profile Picture
    193 on at

    Hi @bekkaye99 

    I couldn't get it completely. I can see the output from 'Html to text' has <p> tag removed.

  • Jay-Encodian Profile Picture
    2,920 on at

    @nmk @bekkaye99 

    A HTML file is essentially already a text file... if you're saving the file somewhere just change the extension to TXT.

    To go from HTML to CSV... you need to extract data from the HTML file and the format the data... this could be complex depending on what you are trying to extract and format.

    HTH

    Jay

  • bekkaye99 Profile Picture
    16 on at

    Hi @Jay-Encodian,

     

    Could you please inform us how to change and save the extension to TXT using MS Flow?

     

    Erhan

  • Jay-Encodian Profile Picture
    2,920 on at

    @bekkaye99 

    You just need to provide a filename ending with .txt....  for example:

    1.jpg

     

  • bekkaye99 Profile Picture
    16 on at

    Hi @Jay-Encodian 

    I think I am doing something wrong. Please find my flow and results. 

    Could you please show us a proper MS flow?

    flow.pngtxtfile.png

  • Jay-Encodian Profile Picture
    2,920 on at

    Hi @bekkaye99 

    That is correct... the HTML is opening as a text file.

    What were you expecting to happen?

  • nmk Profile Picture
    193 on at

    As per my understanding, he's trying to save the rendered output as a text file. 

    Can you please share a sample file with us?

  • bekkaye99 Profile Picture
    16 on at

    Hi @Jay-Encodian 

     

    See the same usable format as below

     

    Raw html datat2.png

    After MS flow data

    t3.png,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard