Use Get Worksheet Row to read one one-based row from an existing .xlsx worksheet in OneDrive for Business or a SharePoint document library. The step returns typed cell values without changing the workbook.
Step Library: Microsoft Excel > Worksheet rows
When to use this step
Use this step when you want to:
- read one worksheet row by its one-based row number;
- preserve Text, Number, Boolean, Blank, Error, and Unknown cell types for later steps; or
- process the returned cells without changing the source workbook.
Common examples include:
- retrieving one spreadsheet record at a known row number;
- checking values in a summary or status row; or
- passing the cells of one row to a For Each Item step.
Use Get Cell Value instead when you need only one cell. Use Get Range Values when you need a rectangular range containing multiple rows or columns.
Before you begin
- Create or select a Microsoft Excel connection that uses a Microsoft work or school account. The connection requires delegated
Files.ReadWritepermission. - Ensure the connected account can read the target
.xlsxworkbook in OneDrive for Business or a SharePoint document library. - If you use a Microsoft Excel Workbook Object, make it available as a workflow variable or as the Workbook output of an earlier step.
Configure the step
- Add Get Worksheet Row from Microsoft Excel > Worksheet rows.
- Select the step to open its configuration panel.
- Select the Microsoft Excel Connection.
- In Workbook source, select Microsoft 365 file, Workbook variable, or Drive and item IDs, then configure the displayed workbook settings.
- Select the Worksheet.
- Enter the one-based Row number or select a Number variable.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Connection | Yes | Microsoft Excel connection | Always | Connection used to access Microsoft Graph. There is no default. The connection must be available to the workflow, remain authorized, and have read access to the workbook. |
| Workbook source | Yes | Microsoft 365 file, Workbook variable, or Drive and item IDs | Always | Selects how the workbook is identified. The default is Microsoft 365 file. |
| Workbook file | Yes | Selected .xlsx file or an Object variable with schema @microsoft/drive-item-reference@v1 | Workbook source = Microsoft 365 file | Supplies the workbook's drive and item identity. There is no default file. At runtime, the selected value or variable must resolve to an accessible .xlsx file. |
| Workbook variable | Yes | Object variable or step output with schema microsoft-excel/workbook@1 | Workbook source = Workbook variable | Supplies a workbook reference published by a previous Microsoft Excel step or stored in a compatible Object variable. There is no default. The resolved Object must contain non-empty Drive ID and Item ID values. |
| Drive ID | Yes | Fixed Text or Text variable | Workbook source = Drive and item IDs | Identifies the OneDrive for Business or SharePoint drive. There is no default. The resolved value must not be empty. |
| Item ID | Yes | Fixed Text or Text variable | Workbook source = Drive and item IDs | Identifies the .xlsx workbook within the selected drive. There is no default. The resolved value must not be empty. |
| Worksheet | Yes | Selected worksheet, fixed worksheet ID or exact name, or Text variable | Always | Identifies the worksheet to read. There is no default. The worksheet picker is available when the connection and workbook can be resolved while authoring. At runtime, the value must resolve to an existing worksheet reference. |
| Row number | Yes | Fixed whole Number or Number variable from 1 to 1,048,576 | Always | One-based row to read. There is no default. Fixed invalid values are rejected by Designer validation; variables are resolved and validated at runtime. |
Data and outputs
Workflow variable effects
This step does not modify workflow variables. It only reads selected variables when resolving its configuration.
Step outputs
| Step output | Type | Available when | Scope | Description |
|---|---|---|---|---|
| Row | Object — Microsoft Excel Worksheet Row (microsoft-excel/worksheet-row@1) | After successful completion | Following and nested steps in the current workflow context until the execution path ends | The requested one-based row number and its typed cells. Internal blank cells are retained, while trailing cells with empty display text are omitted. A valid blank row or a valid row outside the workbook's used range produces an empty Cells collection. No Row output is exposed when the step fails. |
| Workbook | Object — Microsoft Excel Workbook (microsoft-excel/workbook@1) | After successful completion | Following and nested steps in the current workflow context until the execution path ends | Reusable reference to the resolved workbook. It always contains Drive ID and Item ID; Name and Web URL are included only when the selected input provides them. No Workbook output is exposed when the step fails. |
Row object
| Property | Type | Description |
|---|---|---|
| Row | Number | One-based number of the requested worksheet row. |
| Cells | Collection of Objects | Cells from column A through the worksheet's last used column, with trailing cells removed when their formatted display text is empty. |
| Cells > Address | Text | A1 address of the cell, such as B2. |
| Cells > Row | Number | One-based worksheet row number of the cell. |
| Cells > Column | Number | One-based worksheet column number of the cell. |
| Cells > Value Type | Text | Text, Number, Boolean, Blank, Error, or Unknown. |
| Cells > Text Value | Text | Raw value when Value Type is Text; otherwise absent. |
| Cells > Number Value | Number | Raw value when Value Type is Number; otherwise absent. |
| Cells > Boolean Value | Boolean | Raw value when Value Type is Boolean; otherwise absent. |
| Cells > Display Text | Text | Formatted text displayed by Microsoft Excel. This property is also present for blank, error, and unknown cells. |
Workbook object
| Property | Type | Description |
|---|---|---|
| Drive ID | Text | Microsoft 365 drive that contains the selected workbook. |
| Item ID | Text | Stable Microsoft 365 item ID of the selected workbook. |
| Name | Text | Workbook name when it was available from the selected input; otherwise absent. |
| Web URL | Text | Browser URL when it was available from the selected input; otherwise absent. |
Runtime behavior
Execution and completion
When the step runs, Flowifier:
- Resolves the selected connection, workbook, worksheet, and Row number, including any referenced variables.
- Validates the resolved values.
- Opens a persistent Microsoft Excel workbook session.
- Reads the worksheet's used range to determine the last used column, with column A as the minimum.
- Reads the requested row from column A through that last used column.
- Converts each returned cell to its typed value and formatted display text, retains internal blank cells, and removes trailing cells whose display text is empty.
- Exposes Row and Workbook, closes the workbook session on a best-effort basis, and completes the step.
A valid blank row, including a row outside the worksheet's used range, completes successfully with an empty Cells collection. The step is read-only: it does not change the workbook and creates no provider side effect. Repeated or parallel executions perform independent reads and return the workbook state visible to each request.
Branches and child steps
This step does not have branches or child steps. When it is placed inside a branch or child-step context, its outputs follow that context's normal scope and do not escape the execution path on which they were created.
Following container steps can use Row > Cells in their child steps. For example, For Each Item can process each returned cell after Get Worksheet Row completes.
Failure, retry and resume behavior
This step does not suspend execution, perform a whole-step automatic retry, or have a resume point.
Safe Microsoft Graph session and read requests retry throttling and service errors up to three times after the initial request and honor bounded Retry-After values. If validation, authentication, permission, provider, or output validation still fails, the step fails, exposes no step outputs, and the workflow does not continue along its normal execution path. Start a new workflow instance after correcting the cause; a failed instance does not resume automatically.
The instance activity displays a safe error without exposing Microsoft Graph request details or resource identifiers. Because the step is read-only, a failure, cancellation, termination, or repeated execution has no workbook change to roll back and cannot create duplicate data.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| A required fixed setting is missing | Designer validation reports the affected setting and prevents a valid publish. | Complete Connection, the settings shown for the selected Workbook source, Worksheet, and Row number. |
A fixed Row number is not a whole Number from 1 to 1,048,576 | Designer validation reports the invalid setting and prevents a valid publish. | Enter a supported whole Number or select a Number variable. |
| A variable is missing, has the wrong type or Object schema, or resolves to an empty or invalid value | Authoring validation rejects an incompatible reference when possible. Otherwise, the step fails at runtime and exposes no step outputs. | Ensure the variable exists, has the compatible type or schema, and resolves to a value accepted by its setting. |
| The selected row is blank or outside the worksheet's used range | The step succeeds. Row contains the requested row number and an empty Cells collection. | No correction is required. Confirm that the selected row is the intended row. |
| The workbook or worksheet does not exist, is inaccessible, or is not a supported file | The step fails and exposes no step outputs. | Select an accessible .xlsx workbook and an existing worksheet, or correct the supplied IDs or name. |
| The connection is unavailable, expired, or lacks permission | The step fails without exposing connection credentials or provider details. | Reconnect Microsoft Excel, grant the required permission, confirm workflow access to the connection, and verify read access to the workbook. |
| Microsoft Graph throttles or a service request fails | Flowifier retries safe reads up to three times after the initial request. If the retries are exhausted, the step fails and exposes no step outputs. | Wait if necessary, verify Microsoft 365 service availability, and start a new execution. |
| Microsoft Graph returns an invalid or incomplete response | Provider-response validation fails the step and no partial output is exposed. | Verify the workbook can be opened in Microsoft Excel, then start a new execution. Contact support if the response remains invalid. |
The row number must be from 1 through 1,048,576. A returned row can contain at most 16,384 cells, the Microsoft Excel worksheet column limit. Trailing cells with empty display text are omitted from Cells.
Example
Read one order row
Goal: Read row 2 from an order workbook and make its typed cells available to following steps.
Configuration:
- Connection:
Operations Microsoft Excel - Workbook source:
Microsoft 365 file - Workbook file:
Orders.xlsx - Worksheet:
Main - Row number:
2
Result: Flowifier reads row 2 from column A through the worksheet's last used column. Row contains the row number and typed cell values, and Workbook identifies the selected file. A following For Each Item step can iterate over Row > Cells. The workbook remains unchanged.
Related information
- Get Cell Value — read one worksheet cell instead of a complete row.
- Get Range Values — read a rectangular worksheet range.
- List Worksheets — retrieve worksheet references from an existing workbook.
- Microsoft Excel connections — connect a Microsoft work or school account and authorize workbook access.
Comments
0 comments
Article is closed for comments.