Overview
Add Microsoft Excel to any ModuleX agent or workflow. Read, write, and manage Excel workbooks stored in OneDrive via the Microsoft Graph REST API (graph.microsoft.com/v1.0).
Authentication
Microsoft OAuth 2.0
Connect to Microsoft Excel via Microsoft Identity Platform OAuth (recommended). Requires consent to access OneDrive files.Required Credentials
OAuth Configuration
- Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize - Token URL:
https://login.microsoftonline.com/common/oauth2/v2.0/token - Scopes:
Files.ReadWrite,User.Read,offline_access
Available Actions
add_a_worksheet_tablerow — Adds rows to the end of a specific Excel table. Provide either tableId or tableName.
add_a_worksheet_tablerow — Adds rows to the end of a specific Excel table. Provide either tableId or tableName.
Parameters
Response
add_row — Insert a new row at the end of the used range of an Excel worksheet.
add_row — Insert a new row at the end of the used range of an Excel worksheet.
find_row — Find the first row in an Excel worksheet where the given column contains the given value.
find_row — Find the first row in an Excel worksheet where the given column contains the given value.
get_columns — Get all values in the requested columns of an Excel worksheet's used range.
get_columns — Get all values in the requested columns of an Excel worksheet's used range.
get_spreadsheet — Get the values of the specified range (or the entire used range) of an Excel worksheet.
get_spreadsheet — Get the values of the specified range (or the entire used range) of an Excel worksheet.
get_table_rows — Retrieve all rows from a specified table in an Excel worksheet.
get_table_rows — Retrieve all rows from a specified table in an Excel worksheet.
list_folder_id_options — List OneDrive folders the user can browse to pick a workbook location. Returns label/value pairs suitable for a folder picker.
list_folder_id_options — List OneDrive folders the user can browse to pick a workbook location. Returns label/value pairs suitable for a folder picker.
update_cell — Update the value of a specific cell in an Excel worksheet.
update_cell — Update the value of a specific cell in an Excel worksheet.
update_worksheet_tablerow — Update the values of an existing row in an Excel workbook table (work or school accounts only).
update_worksheet_tablerow — Update the values of an existing row in an Excel workbook table (work or school accounts only).
Limits & Quotas
- Microsoft Graph throttling: Graph applies per-app and per-user
throttling. Excessive requests return HTTP
429with aRetry-Afterheader. See https://learn.microsoft.com/en-us/graph/throttling for current limits. - Workbook session limits: Excel workbook APIs apply additional
per-workbook session throttling; consider batching writes via
add_a_worksheet_tablerowrather than per-cellupdate_cellcalls when possible. - Table updates (
update_worksheet_tablerow): work or school Microsoft accounts only. Personal accounts cannot enumerate or update workbook tables. - Error model: non-2xx responses and timeouts are caught and
returned as
success=False+errorrather than raising. Plan for retries on the agent side based on the error string.