# Save text

Node type `browser_saveData`

## What it does

Write supplied text to a local file.

## Desktop client configuration

![Save text configuration in the desktop client](/assets/save-data.5b1df0fee09efbfd8b2e0631bcd79f3714946e00107a8657ddd388ab6fedff56.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"` |
| `template` | `string` | No | — | File content |


## Mode requirements and limits

- path is an authorized .txt file, and template can be an empty string. existingFile controls whether to append or overwrite.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `path` | `literal`, `template` |
| `existingFile` | `literal`, `template` |
| `template` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `path` | `string` |
| `name` | `string` |
| `sizeBytes` | `number` |
| `mimeType` | `"text/plain"` |
| `writeAction` | `"append"` / `"overwrite"` |


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": "save_heading",
  "type": "browser_saveData",
  "data": {
    "title": "Append the heading to a text file",
    "browserAction": "saveData",
    "browserUi": {
      "inputs": {
        "path": "/Users/example/Documents/headings.txt",
        "existingFile": "append",
        "template": "${read_title.data.text}"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

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