Roboteka
Roboteka · Robots · HTML table from an array

HTML table from an array

The "HTML table from an array" robot builds a ready-made HTML table from an array of strings in Bitrix24 (Alaio) business processes and robots. Each array element becomes a table row, the delimiter splits it into columns, and a separate field sets the header row. It returns the table HTML code for inserting into an email or notification, plus the row and column counts.

The robot turns an array of strings into a neat HTML table with inline styles that can be inserted into an email, a notification, or a comment — building a table with standard business process tools is not possible. The input is an array (each element is a future table row), a column delimiter (semicolon by default), and an optional header row using the same delimiter. Values are escaped, so special characters in the data do not break the markup; rows with different column counts are padded with empty cells. Typical use cases: send a manager the deal product list as a table; assemble a payment report into a client email; present outputs of several robots in one notification. It returns the table HTML code and the row and column counts — insert the code into the email body in the next step of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Array of strings (each element is a table row) string yes
Column delimiter (default ;) string
Header row using the same delimiter (optional) string

What does the robot return?

Parameter Type
Table HTML code string
Row count int
Column count int

Scenario: a product table in a client email

  1. The process has collected an array of strings like Name;Quantity;Price
  2. The robot builds an HTML table with the header Product;Qty;Price
  3. The ready HTML is inserted into the email — the client receives a neat order table

Related robots