Skip to content

Excel

The Excel Operator enables working with Excel spreadsheet files. It provides functionality for converting data to Excel format, parsing Excel content into structured data, and extracting header information from Excel files.

  • Converting object data to Excel format
  • Parsing Excel files into structured data
  • Extracting header information from Excel files
  • Integrating with systems that use Excel for data exchange
  • Processing tabular data in Excel format
  • Data transformation between Excel and other formats
  • Generating Excel reports or documents
  • Analyzing Excel-based data

Converts an input object to an Excel file. Uses object fields/elements as Excel columns.

  • value (Object): The data to convert to Excel format
  • useHeader (boolean): Whether to include a header row in the Excel file

Returns a FileDto object containing information about the created Excel file, including:

  • id (string): The unique identifier of the file
  • name (string): The file name (default is “data.xlsx”)
  • contentType (string): The content type (“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”)
  • size (long): The file size in bytes
  • organizationId (string): The organization ID associated with the file
{
"value": {
"customers": [
{
"id": "12345",
"name": "John Doe",
"email": "[email protected]",
"address": "123 Main St, Anytown, 12345"
},
{
"id": "67890",
"name": "Jane Smith",
"email": "[email protected]",
"address": "456 Oak Ave, Somewhere, 67890"
}
]
},
"useHeader": true
}

Reads a provided Excel file and converts it to structured data.

  • file (FileDto): The Excel file to read
  • useHeader (boolean): Whether the Excel file has a header row

Returns a List of Maps representing the Excel data structure, with column names as keys and cell values as values. If useHeader is true, the first row is used as column names; otherwise, column indices are used as keys.

{
"file": {
"id": "file-123",
"organizationId": "org-456"
},
"useHeader": true
}

Extracts header information from an Excel file.

  • file (FileDto): The Excel file to read
  • hasHeaderRow (boolean): Whether the Excel file has a header row

Returns a List of Strings representing the column headers in the Excel file. If hasHeaderRow is true, the first row is returned; otherwise, column indices are returned.

{
"file": {
"id": "file-123",
"organizationId": "org-456"
},
"hasHeaderRow": true
}
  • The operator supports both XLS and XLSX formats
  • Complex objects are converted to Excel rows with columns for each field
  • Lists of objects are converted to multiple rows in the Excel file
  • The Excel parsing preserves the data types of the original cells when possible