Skip to content

Action – copy

Eric Domke edited this page May 6, 2019 · 1 revision

AML Query

<!-- SOAP_ACTION = ApplyAML or ApplyItem or CopyItem -->
<Item action='copy'>
</Item>

<!-- SOAP_ACTION = ApplyAML or ApplyItem or CopyItem2 -->
<Item action='copyAsNew'>
</Item>

ℹ️ copy is used by the UI when copying relationships in the relationships grid. copyAsIs and copyAsNew are interchangeable and are used by the UI with the Save As... menu item.

Attributes (copy)

Attribute Type Usage
do_add Boolean Whether or not to add the item to the database
do_lock Boolean Whether or not to keep the item locked when the operation is complete

Pipeline (copy)

Event Context Notes
onBeforeVersion
onAfterVersion
<Item id="NEW" donor_id="OLD" action="add" loaded="1" levels="1" isTemp="1">
  <property>value</property>
</Item>

Attributes (copyAsNew)

Attribute Type Usage
lock_related Boolean
do_lock Boolean Whether or not to keep the item locked when the operation is complete
useInputProperties Boolean
Clone this wiki locally