The batch update format is as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<Ows: Batch onerror = "continue">
<Method id = '0'>
<Setvar name = "cmd"> Save </setvar>
<Setvar name = "ID"> 14796 </setvar>
<Setlist> af653a38-7a6a-455c-a295-1604c4104a61 </setlist>
// <Setvar name = "urn: Schemas-Microsoft-com: Office: office # contenttype"> item subtype </setvar>
<Setvar name = "urn: Schemas-Microsoft-com: Office: office # title"> myitem002 </setvar>
// <Setvar name = "owsfileref">/projectcenter/ATP/lists/schedules/folderlevel1/myitem002 </setvar>
</Method>
</Ows: Batch>
The above operation is actually to update the title value of the item object. By comparing the script created in batches, we will find that "new" is actually changed to the corresponding id value "14796 ", the update operation is very simple.
Other settings, such as custom property values, are the same. Isn't it easy, but you will immediately find that there are still some xuanjicang that are not very important to us. Suppose our current list "Content Approval" is not opened, now you can open this option and execute the above script to see if it still works?
The answer is yes. Can you update and execute it again?
The answer is no. You will get an error:
<Results>
<Result id = \ "0 \" code = \ "-2130239095 \">
<Errortext> the operation failed due to an unexpected error. (Result code: 0x81072189) </errortext>
</Result>
</Results>
Or you can re-create a new entry, and then change new to the created item ID. You will get an error:
<Results>
<Result id = \ "0 \" code = \ "-2130575338 \">
<Errortext> the project does not exist. The webpage selected by \ n contains a nonexistent project. The project may have been deleted by another user. </Errortext>
</Result>
</Results>
Why is there such a difference between content approval and not opening?
Now that this error is related to moderate, you have to go to the next section and use processbatchdata (4) Save or moderate?