Skip to Content
MosaicMosaicDocs
Tool Reference

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.

Starter documentation. Features and account details may differ from this deployment.

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

ParameterTypeRequiredDescription
entityType"document" | "database"YesThe kind of item to duplicate.
entityIdstringYesThe id of the item to duplicate.
namestringNoName for the copy. Omit to use "<original name> copy".

On this page