Sync Excel workbook content to Genie

Artificial IntelligenceRecipe ToolsDeveloper ToolMarketingWorkatoDocument/File

What it does

When someone starts get_workbook_content in Genie, this automation opens a read-only Excel session and extracts worksheet and range data. The workbook content is returned to Genie, or an error response is sent without retry if extraction fails.

Who it's for

Data and analytics teams who need to retrieve Excel workbook structure and cell data programmatically.

How teams use this

Extract data from multi-sheet workbooks

Retrieve content from multiple worksheets in a single workbook and return structured grid data to Genie for downstream processing or analysis.

Integrate Excel into automation workflows

Use the workbook content response in other Genie workflows to populate forms, validate data, or check Excel cell values before proceeding with downstream steps.

Build read-only audit trails

Access Excel workbooks in read-only mode to ensure data integrity while extracting snapshots for compliance, reporting, or archival purposes.

How it works

  1. Start get_workbook_content in Genie. Someone initiates the get_workbook_content request in Genie with the workbook path and parameters needed to retrieve the file.
  2. Validate workbook path and build session. Execute Ruby code to validate the workbook path, then create a read-only Excel session and extract the session ID for subsequent operations.
  3. Retrieve worksheets and range data. Get the list of worksheets from Excel, resolve the requested ranges, and fetch cell data from each range in the workbook.
  4. Process and format the extracted data. Execute Ruby code to transform the range data into grid regions and prepare the structured response for Genie.
  5. Return workbook content to Genie. Send the processed workbook content back to Genie. If an error occurred during extraction, return the error response without retrying the operation.