# Localdata To File

Filters the data in the local data store (Local Data) and writes it to an Excel file.


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `LocalDataName` | `String` | ✅ Yes    | Local data name |
| `ColumnNames` | `String` | ❌ No     | Column names to write |
| `Filter`  | `String` | ❌ No     | Data filter |
| `FilePath` | `String` | ❌ No     | Excel file path |
| `Data`    | `Byte[]` | ❌ No     | Existing 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** |
|-----------|------|-------------|
| `IsLocalDataToExcelFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `LocalDataToExcelFileMessage` | `String` | Result message |
| `LocalDataToExcelFileResult` | `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**". |