# Complex Local Data To File

Exports complex/hierarchical Local Data structures to CSV with query-based filtering.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Query`   | `String` | ✅Yes     | Complex data selection query |
| `Separator` | `String` | ✅Yes     | CSV separator character |
| `FilePath` | `String` | ❌No      | Target file path |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsComplexLocalDataToCsvFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `ComplexLocalDataToCsvFileMessage` | `String` | Status/error message |
| `ComplexLocalDataToFileResult` | `Byte[]` | Binary content of the CSV file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |