Read range
Read a range, or all cells in use, from an Excel workbook stored in OneDrive or SharePoint, without downloading it.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_read_range · 8 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Remote path | String | No | Workbook path in the drive. | |
| Sheet | String | No | Worksheet name. | |
| Range | String | No | Range address; all cells in use on the sheet when empty. | |
| Drive | String | No | me/drive | Whose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
| First row is the header | Boolean | No | true | The first row holds the column names. |
| Read as | String | No | value | value returns numbers and booleans as such; text returns what Excel displays, with number formats applied. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Range values; the first row gives the column names when header is on, else Column1, Column2 ... |