Microsoft Excel 365
The robomotion excel365 CLI connects to Microsoft Excel 365 via the Graph API for full spreadsheet operations. It manages workbooks in OneDrive/SharePoint — reading and writing ranges, cells, rows, columns; managing worksheets and tables; handling formulas and hyperlinks; and supporting append, clear, and delete operations.
When to use
- Read or write cell ranges, rows, and columns in Excel 365 workbooks
- Create workbooks and worksheets in OneDrive/SharePoint
- Manage Excel tables — get/set/append rows, create tables from ranges
- Get or set formulas and hyperlinks in cells
Prerequisites
robomotionCLI installed- Package installed:
robomotion install excel365 - Microsoft 365 OAuth2 credentials configured via Robomotion vault
Workflow
- Install:
robomotion install excel365 - Open workbook:
robomotion excel365 open_workbook --file-path <path>→ returns aworkbook-id - Read range:
robomotion excel365 read_range --workbook-id <id> --sheet-1 --range-address A1:D10 - Write cell:
robomotion excel365 set_cell --workbook-id <id> --sheet-1 --cell-address A1 --value <val> - Close:
robomotion excel365 close_workbook --workbook-id <id>
Commands Reference
robomotion excel365 open_workbook --file-path --output jsonOpens an Excel 365 workbook and returns a workbook ID for use in other nodesrobomotion excel365 close_workbook --workbook-id --output jsonCloses an open Excel workbook and releases resourcesrobomotion excel365 create_workbook --workbook-name [--drive-id] [--folder-path] --output jsonCreates a new Excel workbook in OneDrive or SharePoint and opens it for userobomotion excel365 list_workbooks [--drive-id] [--folder-path] --output jsonLists Excel workbooks from OneDrive or SharePointrobomotion excel365 get_workbook --workbook-id --output jsonGets details of a specific Excel workbookrobomotion excel365 list_worksheets --workbook-id --output jsonLists worksheets in an Excel workbookrobomotion excel365 create_worksheet --workbook-id --worksheet-name --output jsonCreates a new worksheet in an Excel workbookrobomotion excel365 delete_worksheet --workbook-id --sheet-1 --output jsonDeletes a worksheet from an Excel workbookrobomotion excel365 list_tables --workbook-id --sheet-1 --output jsonLists tables in an Excel workbook or worksheetrobomotion excel365 create_table --workbook-id --sheet-1 --range-address --column-names --output jsonCreates a new table from a range in an Excel worksheetrobomotion excel365 get_table_rows --workbook-id --table-id --output jsonGets rows from an Excel table and outputs in DataTable formatrobomotion excel365 get_table_row --workbook-id --table-id --row-index --output jsonGets a single row from an Excel table by index and returns as JSON objectrobomotion excel365 set_table_row --workbook-id --table-id --row-index --row --output jsonUpdates a row in an Excel table by indexrobomotion excel365 append_table_row --workbook-id --table-id --row --output jsonAppends a new row to an Excel tablerobomotion excel365 read_range --workbook-id --sheet-1 --range-address --output jsonReads data from a cell range in an Excel worksheet and outputs in DataTable formatrobomotion excel365 write_range --workbook-id --sheet-1 --range-address --table --output jsonWrites data to a cell range in an Excel worksheetrobomotion excel365 get_cell --workbook-id --sheet-1 --cell-address --output jsonReads a single cell value from an Excel worksheetrobomotion excel365 set_cell --workbook-id --sheet-1 --cell-address --value --output jsonWrites a value to a single cell in an Excel worksheetrobomotion excel365 get_row --workbook-id --sheet-1 --row-number --output jsonReads a single row from an Excel worksheet and returns as JSON objectrobomotion excel365 set_row --workbook-id --sheet-1 --row-number --row --output jsonWrites values to a specific row in an Excel worksheetrobomotion excel365 append_row --workbook-id --sheet-1 --row --output jsonAppends a new row at the end of data in an Excel worksheetrobomotion excel365 delete_row --workbook-id --sheet-1 --row-number --output jsonDeletes a row at a specific position in an Excel worksheetrobomotion excel365 get_column --workbook-id --sheet-1 --column [--start-row] [--end-row] --output jsonGets data from a specific column in an Excel worksheetrobomotion excel365 insert_column --workbook-id --sheet-1 --column --values --output jsonInserts a new column with values at a specific position in an Excel worksheetrobomotion excel365 delete_column --workbook-id --sheet-1 --column --output jsonDeletes one or more columns at a specific position in an Excel worksheetrobomotion excel365 clear_range --workbook-id --sheet-1 --range-address --output jsonClears content or formatting from a range in an Excel worksheetrobomotion excel365 clear_sheet --workbook-id --sheet-1 --output jsonClears all content or formatting from an entire Excel worksheetrobomotion excel365 get_formula --workbook-id --sheet-1 --cell-address --output jsonGets the formula from a single cell in an Excel worksheetrobomotion excel365 set_formula --workbook-id --sheet-1 --cell-address --formula --output jsonSets a formula in a single cell in an Excel worksheetrobomotion excel365 get_hyperlink --workbook-id --sheet-1 --cell-address --output jsonGets the hyperlink URL from a single cell in an Excel worksheet
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)