# Lookup Data Table

Finds the first row that contains the lookup value in a column; returns the row's index and, optionally, the cell value in another column. If the specified column does not exist in the table, the activity throws an error.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `DataTable` | `DataTable` | ✅ Yes    | Table to search. |
| `LookupValue` | `String` | ✅ Yes    | Value to look for. Compared exactly with the text form of the cell value (case-sensitive). Empty cells are treated as empty text. |
| `LookupColumnName` | `String` | ❌ No     | Name of the column to search in. Either `LookupColumnName` or `LookupColumnIndex` must be set; if both are set, the name is used. |
| `LookupColumnIndex` | `Int32?` | ❌ No     | Index of the column to search in (zero-based). Either `LookupColumnName` or `LookupColumnIndex` must be set. |
| `TargetColumnName` | `String` | ❌ No     | Name of the column whose value is written to the `CellValue` output. If set together with `TargetColumnIndex`, the name is used. |
| `TargetColumnIndex` | `Int32?` | ❌ No     | Index of the column whose value is written to the `CellValue` output (zero-based). If no target column is set, only `RowIndex` is filled. |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `CellValue` | `Object` | Value of the found row in the target column. Empty (null) if no row is found or no target column is set. |
| `RowIndex` | `Int32` | Index of the first row found (zero-based). `-1` if no row is found. |