Ido Toolbox icon

Ido Toolbox

A comprehensive collection of useful tools for data processing, text manipulation, and daily operations

Tool → Create HTML From Table - Advanced

AI-generated

Overview

The "Create HTML From Table - Advanced" operation in this node converts structured input data (in JSON or CSV format) into a styled HTML table. It allows customization of the table's CSS class, inclusion of headers, and optionally adding a table title. This is useful for generating visually formatted tables from raw data for emails, reports, dashboards, or web pages without manual HTML coding.

Practical examples:

  • Converting API JSON responses or CSV exports into readable HTML tables for embedding in newsletters.
  • Creating dynamic HTML tables with custom styling classes for internal documentation or web content.
  • Quickly visualizing tabular data with optional titles and header rows directly within an automation workflow.

Properties

Name Meaning
Input Data The raw input data to convert, provided as a string in either JSON or CSV format.
Data Format Specifies the format of the input data. Options: JSON or CSV.
Table Class CSS class(es) to apply to the generated <table> element for styling purposes.
Include Headers Boolean flag indicating whether to include a header row in the table based on data keys.
Table Title Optional title text to display above the table, rendered as an <h3> element.

Output

The output JSON contains the following fields:

  • htmlTable: A string containing the complete HTML markup of the generated table, including optional title and headers.
  • rowCount: Number of data rows included in the table body.
  • columnCount: Number of columns derived from the data keys or CSV headers.
  • headers: An array of strings representing the column headers used.
  • tableClass: The CSS class string applied to the <table> element.
  • hasTitle: Boolean indicating if a table title was included.

No binary data output is produced by this operation.

Dependencies

  • No external services or APIs are required.
  • The node expects valid JSON or CSV input data; malformed inputs will cause errors.
  • No special environment variables or credentials are needed.

Troubleshooting

  • Invalid JSON format: If the input data is specified as JSON but cannot be parsed, the node throws an error. Ensure the JSON string is correctly formatted.
  • Empty or malformed CSV: For CSV input, the first line must contain comma-separated headers, and subsequent lines should have matching columns.
  • Missing headers when requested: If "Include Headers" is true but the data has no keys or headers, the table will render without headers.
  • CSS class not applying styles: Make sure the specified CSS class exists in your environment where the HTML will be rendered.
  • Empty input data: Results in an empty table with zero rows and columns.

Links and References

Discussion