# Datatable To Localdata

Transfers a DataTable to a LocalData table.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `LocalDataName` | `String` | ✅Yes     | Target table name |
| `Data`    | `DataTable` | ✅Yes     | DataTable to transfer |
| `AppendIfExists` | `Boolean` | ❌No      | `true`: append to the existing table, `false`: overwrite |


---

### :arrow_right:**OUTPUT**

| Parameter | **Type** | **Description** |
|-----------|------|-------------|
| `IsDataTableToLocalDataSuccessful` | `Boolean` | Returns "**True**" if the operation succeeds, "**False**" if it fails. |
| `DataTableToLocalDataMessage` | `String` | Returns the error information received if the operation fails. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error (default: No) |