Use Update Worksheet Row to replace selected cells in one existing, one-based worksheet row of an .xlsx workbook. The step writes a sparse set of Text, Number, Boolean, or Blank values without inserting or shifting rows, then reads the committed row back as a typed step output.
Step Library: Microsoft Excel > Worksheet rows
When to use this step
Use this step when you want to:
- replace one or more selected cells in a worksheet row without shifting other rows;
- write Text, Number, Boolean, or Blank values to non-adjacent columns; or
- make the committed row and resolved workbook available to following steps.
Common examples include:
- changing the status and amount in a spreadsheet record at a known row number;
- clearing an obsolete cell while preserving the other cells in the row; or
- synchronizing selected workflow values to an existing worksheet row.
Use Set Cell Value instead when you need to change only one cell. Use Set Range Values for a rectangular block, Update Table Row for a row inside a structured Excel table, or Insert Worksheet Rows when you need to create blank rows and shift existing content down.
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 edit the target
.xlsxworkbook. - If you use a Microsoft Excel Workbook Object, make it available as a workflow variable or as the Workbook output of an earlier step.
- If you use an Object variable for Row values, it must use schema
microsoft-excel/worksheet-row-input@1.
Configure the step
- Add Update 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 and enter the one-based Row number.
- In Row values, choose Enter values and add at least one Cells item, or choose Variable and select a compatible Object variable.
- For each entered cell, choose a unique one-based Column, select its Value Type, and configure the value field displayed for that type.
- 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 write 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 update. 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 update. There is no default. Fixed invalid values are rejected by Designer validation; variables are resolved and validated at runtime. |
| Value source | Yes | Enter values or Variable | Always | Selects whether Row values are configured in the step or supplied as one compatible Object. The default is Enter values. |
| Row values | Yes | Entered Cells, or Object variable with schema microsoft-excel/worksheet-row-input@1 | Always | Supplies the sparse row update. There is no row-value default. At least one valid cell is required. Variable requires the exact registered Object schema; the resolved Object is validated again at runtime. |
| Cells | Yes | One or more cell items | Value source = Enter values | Defines the cells to update. There are no default items. Each item requires a unique Column and one supported typed value. Items are sent in their configured order. |
| Column | Yes | Fixed whole Number or Number variable from 1 to 16,384 | Value source = Enter values | One-based worksheet column for the cell. There is no persisted default. Column numbers in the same row input must be unique. Fixed invalid values are rejected by Designer validation; variables and duplicate resolved columns are validated at runtime. |
| Value Type | Yes | Text, Number, Boolean, or Blank; or a Text variable resolving to one of these values | Value source = Enter values | Selects the raw value expected for the cell. There is no persisted default. When a variable supplies the type, the resolved row must contain exactly the raw value property required by that type. Blank has no raw value field and clears the target cell. |
| Text Value | Yes | Fixed Text or Text variable | Value Type = Text or Value Type is variable | Value written when the resolved type is Text. There is no default. Text beginning with =, +, -, or @ is escaped and stored as literal text rather than executed as a formula. |
| Number Value | Yes | Fixed finite Number or Number variable | Value Type = Number or Value Type is variable | Value written when the resolved type is Number. There is no default. NaN and infinite values are rejected. |
| Boolean Value | Yes | Fixed Boolean or Boolean variable | Value Type = Boolean or Value Type is variable | Value written when the resolved type is Boolean. There is no default. |
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 | Provider-confirmed state of the updated row after all configured writes complete. It contains the one-based row number and typed cells from column A through the worksheet's last used column. Internal blank cells are retained, while trailing cells with empty display text are omitted. No Row output is exposed when a write or the committed readback 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 updated 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 B25. |
| 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, Row number, and Row values, including referenced variables.
- Validates the resolved row, including its value shapes, unique columns, and worksheet bounds.
- Opens a persistent Microsoft Excel workbook session.
- Sends one Microsoft Graph update for each configured cell, sequentially in the configured Cells order. A Text value beginning with
=,+,-, or@is escaped before submission, andBlankis sent as an empty value. - Reads the committed row from column A through the worksheet's last used column and converts every returned cell to a typed value and formatted display text. Internal blank cells are retained, and trailing cells with empty display text are removed.
- Exposes Row and Workbook, closes the workbook session on a best-effort basis, and completes the step.
The step changes only the configured cells; it does not insert a row, shift other cells, or clear unconfigured cells. Running it again with the same resolved target and values writes the same values again without creating another row. Concurrent updates of the same cells are independent provider requests and can overwrite one another or produce a provider conflict.
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 Update Worksheet Row completes. A property nested inside Cells is available from the typed item inside that loop, not as a scalar reference to the complete Object Collection.
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 read requests used for the committed readback may retry throttling and service errors up to three times after the initial request and honor bounded Retry-After values. Cell update requests are mutations and are not automatically retried.
If validation, authentication, permission, or provider access fails before the first update, 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.
Cells are updated sequentially. If a later cell update fails, earlier cells can remain changed even though the step fails and exposes no outputs. A network interruption, timeout, or service failure after Microsoft Graph receives an update can also leave that cell's outcome unknown. If the final committed readback fails, all requested writes may already be saved even though the step fails. Inspect the workbook before starting another execution.
Cancellation or termination cannot roll back cell values that Microsoft Graph has already changed.
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, Row number, and Row values. |
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. |
An entered Column is not a whole Number from 1 to 16,384 | Designer validation marks the field as invalid, including when invalid data is loaded, and prevents a valid publish. | Enter a supported whole Number or select a Number variable. |
| Row values contains no cells, duplicate resolved columns, an unsupported type, or a missing raw value | Authoring validation reports detectable fixed-value errors. Otherwise, runtime validation fails the step before the affected provider request, and no step outputs are exposed. | Add at least one cell, use each column once, select a supported Value Type, and provide exactly its matching value. |
| 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. |
A Text value begins with =, +, -, or @ | The value is escaped and stored as literal text. It is not executed as an Excel formula. | Use this step only for literal Text, Number, Boolean, or Blank values. Formula values are not supported. |
| The workbook or worksheet does not exist, is inaccessible, protected, locked, or not a supported file | The step fails and exposes no step outputs. | Select an accessible, editable .xlsx workbook and an existing worksheet, remove protection or locks when appropriate, 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 write access to the workbook. |
| A cell update fails after an earlier cell was changed | The step fails and exposes no outputs, but earlier configured cells can remain changed. | Inspect the entire target row, correct the failure, and deliberately restore or rerun only the required cell values. |
| Microsoft Graph throttles, times out, or cannot confirm a cell update | The mutation is not automatically retried. If the request was dispatched, the cell might already have changed even though the step failed. | Inspect the workbook first. If the intended value is absent, wait if necessary and start a new execution. |
| The committed row cannot be read back after the writes | The step fails with an unknown outcome and exposes no outputs, but some or all requested values can already be saved. | Inspect the workbook before retrying. Start a new execution only after determining which values were committed. |
| A successful configuration is executed again | The same configured cells are written again. No additional worksheet row is created. Different resolved values overwrite the previous values. | No correction is required for an intentional repeat. Prevent duplicate workflow execution when repeated external writes are not intended. |
The row number must be from 1 through 1,048,576. Every row input requires at least one cell and can address each of the 16,384 worksheet columns at most once. Number values must be finite. Formula values are not supported.
Example
Update an order status row
Goal: Update selected values in row 25 of an order workbook without changing the other cells in that row.
Configuration:
- Connection:
Operations Microsoft Excel - Workbook source:
Microsoft 365 file - Workbook file:
Orders.xlsx - Worksheet:
Orders - Row number:
25 - Value source:
Enter values - Cells:
- Column:
1; Value Type:Text; Text Value:Completed - Column:
3; Value Type:Number; Number Value:42.5 - Column:
4; Value Type:Blank
- Column:
Result: Flowifier writes Completed to A25, writes the Number 42.5 to C25, clears D25, and leaves unconfigured cells unchanged. Row contains the provider-confirmed typed values after the update, and Workbook identifies the changed file.
Related information
- Set Cell Value — update one worksheet cell instead of a sparse row.
- Set Range Values — replace a rectangular range of worksheet values.
- Get Worksheet Row — read a row without changing it.
- Update Table Row — update a row inside a structured Excel table.
- Insert Worksheet Rows — insert blank rows and shift existing content down.
- List Worksheets — retrieve worksheet references from an existing workbook.
- Microsoft Excel connections — connect a Microsoft work or school account and authorize workbook access.
- Microsoft Graph: Update range — provider API behavior for writing values to a range.
Comments
0 comments
Article is closed for comments.