-
Notifications
You must be signed in to change notification settings - Fork 16
Action – Update
Eric Domke edited this page Jun 16, 2020
·
3 revisions
<!-- SOAP_ACTION = UpdateItem, ApplyAML, or ApplyItem -->
<Item action='update' where='criteria'>
<property>new_value</property>
</Item>
Attribute | Type | Usage |
---|---|---|
version |
Boolean | If 0 then don't version an Item on update. Default is 1 , which is version the Item (if it's a versionable Item) on update. |
serverEvents |
Boolean | If 0 then disable the server events improving performance. Default is 1 . Only Update events are disabled, Lock events can be executed if using Edit . |
Event | Context | Notes |
---|---|---|
onBeforeUpdate | <Item action='update' id='1234'> <property>value</property> </Item> |
OnBeforeUpdateEventArgs{ IdList = {"1234", "5678"}, Id = "1234" }Called once per Item ID impacted |
GetKeyedName | <Item id='1234'> <!-- All property data** --> </Item> |
Called once per Item ID impacted |
onGet | Only called if there are one or more onAfterUpdate v1 methods | |
onAfterUpdate (v1) | <Item id='1234'> <!-- All property data --> </Item> |
Version 1 methods are called once per Item ID |
onAfterUpdate (v2) | <Item/> |
Version 2 methods are only called once per request. |
onGet | Can be suppressed by adding the attribute doGetItem='0' to the AML request |