> For the complete documentation index, see [llms.txt](https://cgps.gitbook.io/data-flo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgps.gitbook.io/data-flo/reference-guide/create-list-from-datatable.md).

# create-list-from-datatable

## Description

<mark style="color:purple;">`create-list-from-datatable`</mark> *adaptor creates a list from all the values in a datatable column*.

## Inputs

**`data`**\
Type: `datatable`\
Required: Yes\
The datatable containing the column values.

**`column name`**\
Type: `text`\
Required: Yes\
The name of the column from which the list will be created.

## Outputs

**`list`**\
Type: `list`\
A list containing the values from the datatable column.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`data`:

| id | code | name           |
| -- | ---- | -------------- |
| 1  | GB   | United Kingdom |
| 2  | TR   | Turkey         |
| 3  | US   | United States  |
| 4  | IND  | India          |

`column name`: name

#### Outputs:

`list`:

1. United Kingdom
2. Turkey
3. United States
4. India

-> Created a list from the column `name` in the datatable.
