# Local Data To File

Exports Local Data to a CSV file.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `LocalDataName` | `String` | ✅Yes     | Name of the Local Data to export |
| `Separator` | `String` | ✅Yes     | CSV separator character (`,`, `;`, `\t`) |
| `ColumnNames` | `String` | ❌No      | Comma-separated column names (null = all columns) |
| `Filter`  | `String` | ❌No      | Row filter expression |
| `FilePath` | `String` | ❌No      | Output file path |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsLocalDataToCsvFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `LocalDataToCsvFileMessage` | `String` | Status/error message |
| `LocalDataToFileResult` | `Byte[]` | Binary content of the generated CSV file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `bool` | `false` | Throw an exception on error |