Convert HTML Table to CSV

Convert HTML table to CSV

Description

This action converts an HTML table into a CSV format.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
HTMLHTMLThe HTML content containing the table to be converted.✔️-
SeparatorStringSeparator (delimiter of the fields);

Output

ResponseTypeDescription
First CSV table respone StringThe converted table as CSV text, with values separated using the specified delimiter.
All CSV table response ItemArrayA list of CSV strings for all tables found in the HTML input. Each item in the array represents one table.

Power Automate Examples

Convert HTML Table to CSV

You provide HTML code that contains one or more <table> elements. You can also specify a separator (e.g., ; or ,) that will be used to separate values in the CSV.

HTML table
<table border = "1">
<tr> 
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>

Picture

💡

Looking for the response to this example? Scroll up to see the Output tab.

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!