For the complete documentation index, see llms.txt. This page is also available as Markdown.

Processing spreadsheet files (XLSX)

The Eximee platform enables reading and processing data directly from spreadsheet files (XLSX) attached by the user to the request (e.g. using the Attachments (UploadFile) component). This functionality is very useful when mass importing data, such as employee lists, financial statements, or inventory tables.

Operating mechanism

File processing is based on integration via the built-in client api.rest.v1. The file is sent to the processing module as an encoded string (Base64), and a structured data map is returned in response.

Request

An object containing the property content. The value of this property must be a Base64 file. This is the format in which files are stored in memory when we retrieve them from the file upload component (UploadFile). In the case of adding multiple files, this component stores them as a list of Base64 strings.

{
    "content": "UEsDBBQAAAAIA..." 
}

Response

In response, the module returns a nested structure (map) in JSON format that reflects the physical layout of the spreadsheet, divided into: Sheet name ➔ Row number ➔ Column letter.

{
    "sheet1": {
        "1": {
            "A": "Value from cell A1",
            "B": "Value from cell B1"
        },
        "2": {
            "A": "Value from cell A2"
        }
    }
}

Example usage in a script

The script below shows how to retrieve a file from the component, send it to the XLSX processing module, and return the decoded data structure to the script output, while ensuring safe handling of integration errors.

Last updated

Was this helpful?