# Complex Localdata To File

Writes local data filtered with a complex query to an Excel file.


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Query`   | `String` | ✅Yes     | Data filter query |
| `FilePath` | `String` | ❌No      | Excel file path |
| `Data`    | `Byte[]` | ❌No      | Excel binary data |
| `SheetName` | `String` | ❌No      | Target sheet name |
| `StartRow` | `Int32?` | ❌No      | Start row number |
| `StartColumn` | `Int32?` | ❌No      | Start column number |
| `AppendIfExists` | `Boolean` | ❌No      | Whether to append if the file exists |


---

### **➡️OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsComplexLocalDataToExcelFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `ComplexLocalDataToExcelFileMessage` | `String` | Result message |
| `ComplexLocalDataToExcelFileResult` | `Byte[]` | Created Excel 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**". |