# Get Distinct Columns

Returns a new DataTable containing the unique (distinct) rows of a DataTable based on the specified columns.


---

### :arrow_left:**INPUT**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `Input`   | `DataTable` | ✅Yes     | Source DataTable to process |
| `ColumnNames` | `String` | ❌No      | Names of the columns the distinct operation is applied to |


---

### :arrow_right:**OUTPUT**

| Parameter | Type | Description |
|-----------|------|-------------|
| `IsGetDistinctColumnsSuccessful` | `Boolean` | Whether the operation succeeded |
| `GetDistinctColumnsMessage` | `String` | Result message or error description |
| `GetDistinctColumnsResult` | `DataTable` | DataTable containing the unique rows |


---

### :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**". |