# Create a Table from the Rows

### Overview

This procedures takes a collection of individual data rows and efficiently organizes them into a brand new, structured table. It's useful when you've already gathered or filtered specific rows from a previous command.

### Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

<details>

<summary><code>create a table from the rows</code></summary>

**What does it do?**

Instructs the system to create a table from one or more rows.

**Where does it go?**

This phrase should be written on a **new line**.

**Is it required?**

✅ Yes — This phrase is **required**.

**Does it require data?**

✅ Yes — A reference to **the rows** must be defined.

</details>

### Examples

#### 1. Create a table from a sample's table's rows

{% tabs %}
{% tab title="Automation" %}

```
create a sample table
get the table's rows where
    the row selection formula is "City == San Francisco"
create a table from the rows
```

{% endtab %}

{% tab title="Results" %}
**the table**

| Name          | Number             | Address          | City          |
| ------------- | ------------------ | ---------------- | ------------- |
| john          | + 1 (415) 691 9426 | 123 east street  | San Francisco |
| jack          | + 1 (415) 691 4595 | 213 north street | San Francisco |
| {% endtab %}  |                    |                  |               |
| {% endtabs %} |                    |                  |               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/tables-v2/create-a-table/create-a-table-from-the-rows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
