Get table rows
Read all rows of an Excel table, or one row by its position, as a Data Table, using the table's header names as columns.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_get_table_rows · 6 inputs (1 required), 2 outputs
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 (e.g. Finance/budget.xlsx), or id:{item-id}. | |
| Table | String | Yes | Table name or id. | |
| 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. |
| Row index | Number | No | Return only this data row; 1 is the first row under the headers. All rows when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | The table's rows. |
| count | Number | Number of rows. |