# Write Excel

Node type `browser_exportExcel`

## What it does

Write workflow data to a local Excel workbook.

## Desktop client configuration

![Write Excel configuration in the desktop client](/assets/export-excel.78d01182850a67a30a21157ec49f453f5d8a5a6a7a0f0f713eda4b5e031b657d.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `path` | `string` | No | — | File path |
| `existingFile` | `"append"` / `"overwrite"` (supports variable references) | No | `"append"` | If the file already exists. Editor initial value `"append"` |
| `writeMode` | `"columns"` / `"object"` (supports variable references) | No | `"columns"` | Write mode. Editor initial value `"columns"` |
| `fields` | array<`object`> (supports variable references) | No | — | Data to write |
| `rowObject` | `["null","boolean","number","string"]` / array<`JSON`> / `object` (supports variable references) | No | — | Row data object |


## Mode requirements and limits

- path is an absolute .xlsx/.xls file name. writeMode=columns requires a non-empty fields:[{key,value}], and key must be unique; object requires a non-empty rowObject. existingFile controls whether to append to or overwrite the file at the path.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `path` | `literal`, `template` |
| `existingFile` | `literal`, `template` |
| `writeMode` | `literal`, `template` |
| `fields` | `literal`, `template` |
| `rowObject` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `path` | `string` |
| `name` | `string` |
| `rowCount` | `number` |
| `totalRowCount` | `number` |
| `columns` | array<`string`> |
| `row` | `object` |
| `writeAction` | `"append"` / `"overwrite"` |
| `pending` | `false` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. It reads `read_title.data.text`, the output of an earlier Read element data node. Replace the local paths with absolute paths on your machine.

```json
{
  "id": "write_result",
  "type": "browser_exportExcel",
  "data": {
    "title": "Write the result to a spreadsheet",
    "browserAction": "exportExcel",
    "browserUi": {
      "inputs": {
        "path": "/Users/example/Documents/results.xlsx",
        "existingFile": "append",
        "writeMode": "columns",
        "fields": [
          {
            "key": "Heading",
            "value": "${read_title.data.text}"
          },
          {
            "key": "Status",
            "value": "done"
          }
        ]
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)