Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
---
title: DuplicateItem
description: >-
Make a copy of a document (including a task) or a database, owned by the user,
as the Duplicate action in the app does.
---
# DuplicateItem
Make a copy of a document (including a task) or a database, owned by the user, as the Duplicate action in the app does. A database copy has every table, column, view and row, except relation columns into other databases the user cannot view, which it leaves out; its sharing, forms and history stay with the original. Requires view access to the original. Returns the copy's id.
## Parameters
| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `entityType` | `"document"` \| `"database"` | Yes | The kind of item to duplicate. |
| `entityId` | string | Yes | The id of the item to duplicate. |
| `name` | string | No | Name for the copy. Omit to use "\<original name> copy". |