# File To Datatable

Retrieves the mail file given by file path or Binary data as Collection mail data.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅Yes     | Mail file path |
| `Data`    | `Byte[]` | ✅Yes     | Mail file data (byte array) |
| `Format`  | `String` | ❌No      | File format |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsMailFileToDataTableSuccessful` | `Boolean` | Whether the operation succeeded |
| `MailFileToDataTableMessage` | `String` | Result/error message |
| `MailFileToDataTableResult` | `DataTable` | Result table |


---

### :arrow_down:**MISC**

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