# Database Duplicate Row

> Duplicate an existing row in a database by its ID.

- ID: `db_duplicate_row`
- Type: Block
- Category: [Databases](https://inventor.bot/docs/reference/blocks/databases.md)

- Database columns are extra inputs/outputs named `dbcol_<column name>`.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `database_id` | yes | Select the database containing the row. |  |
| `row_id` | yes | The unique ID of the row to duplicate. | e.g. `"abc123xyz"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `row_id` | The unique ID of the duplicated row. | e.g. `"abc123xyz2"` |
| `duplicated` | Whether the row was successfully duplicated (true/false). | e.g. `"true"` |
| `row_json` | The duplicated row as a JSON object, including system fields (__id, __created_at, __updated_at, __created_at_unix, __updated_at_unix). | e.g. `"{\"__id\":\"abc123xyz2\",\"name\":\"example\"}"` |

**Example**

```go
row := db_duplicate_row(Args{database_id: "...", row_id: "abc123xyz"})
send_text_message(Args{channel_id: trigger.channel_id, message_content: "Row ID: " + row.row_id})
```