Copies (links) or moves an item from one container into another container. All mail item types can be copied or moved from one folder to another. All address book item types can be copied or moved from one personal address book to another. In GroupWise, an item can appear in more than one container. If an item appears in more than one container, it is called a linked item.
<moveItemRequest> <id type="types:uid"/> <container type="types:uid"/> <from type="types:uid”/> <before type="types:uid"/> <after type="types:uid"/> <under type="types:uid"/> <recurrenceAllInstances type="unsignedInt"/> </moveItemRequest>
<moveItemResponse> <status type="types:Status"/> <id type="typs:uid"/> </moveItemResponse>
Specifies the uid of the item that you want to move or copy.
Specifies the destination container where the moved or copied item appears.
Specifies the from container uid to move an item from one container to another container. If you want to copy an item in one container to another container, do not provide the from uid.
Specifies the location of the item before it is moved. This element is used to order items in the checklist folder. If you supply item IDs for the before and after elements, the item is positioned between the two items. If you do not supply values for the before and after elements, the item is placed last in the checklist folder. You can specify “first” to place the item first in the list or “last” to place the item last in the list.
Specifies the location of the item after it is moved. This element is used to order items in the checklist folder. If you supply item IDs for the before and after elements, the item is positioned between the two items. If you do not supply values for the before and after elements, the item is placed last in the checklist folder. You can specify “first” to place the item first in the list or “last” to place the item last in the list.
Returns the error number related to the event. 0 indicates that the request was successful.
Returns the success or failure of the method.
The under element controls making an item a subtask item. The item referenced by id will be put under the item identifed by under.
Passes the recurrenceKey value to move all instances.
After the item is moved, the new item id is returned.
The following example show different uses of moveItemRequest.
<moveItemRequest> <id>44EC25B2.domain1.po1.100.16E3837.1.F75.1@1:44EAEB8F. domain1.po1.100.16E3837.1.F6F.1@35</id> <container>C.domain1.po1.100.0.1.0.1@21</container> <from>44EAEB8F.domain1.po1.100.16E3837.1.F6F.1@35</from> </moveItemRequest>
<moveItemRequest> <id>44EC25B2.domain1.po1.100.16E3837.1.F75.1@1:44EAEB8F. domain1.po1.100.16E3837.1.F6F.1@35</id> <container>450A68B9.domain1.po1.100.16E3837.1.FCC.1@13</container> </moveItemRequest>