Discover Workbook Structure
A 5-step recipe with Microsoft Excel. We can help you get access.
Recipe · 5 steps
Discover Workbook Structure
with Microsoft Excel
Inventory the structure of an Excel workbook without modifying it.
- Open a workbook session with persistChanges false. A read-only session keeps the discovery pass fast and guarantees nothing is written back.
- List every worksheet in the workbook, including position and visibility, so hidden sheets are visible to the caller.
- List the structured tables defined on the target worksheet. Tables are the preferred write surface because they carry a header row and grow safely.
- List workbook-level named items. Named ranges are the stable way to address data that may move as the sheet is edited.
- List the charts already present on the worksheet so a reporting flow does not duplicate a chart that already exists.
What you'll need to have ready
- itemId: The drive item id of the workbook file in OneDrive or SharePoint.
- worksheetIdOrName: The worksheet to inspect for tables and charts (e.g. "Sheet1").
For your developer
Arazzo workflow microsoft-excel:discover-workbook-structure, 5 operations: createWorkbookSession → listWorksheets → listTables → listNamedItems → listCharts. Specs on APIs.io.