I am trying to use the UpdateListItems Web Service API call to create a new (customised) folder and set meta data at the same time. Here is my batch element:
<Batch ListVersion="1" OnError="Continue" xmlns="">
<Method Cmd="New" ID="1">
<Field Name="ID">New</Field>
<Field Name="FSObjType">1</Field>
<Field Name="BaseName">Students A/AHN (AHCJD1001)</Field>
<Field Name="ContentType">Student Folder</Field>
<Field Name="StudentID">AHCJD1001</Field>
<Field Name="Surname">AHN</Field>
<Field Name="Status_x0020_Code">C</Field>
<Field Name="Archived">1</Field>
</Method>
</Batch>
Now, it all works perfectly - EXCEPT the Archived field. That is a boolean field in SharePoint and nothing I do in this batch allows me to ever set it to true. All the other fields work fine, setting surname, student ID, content type and status code. I have tried using 1 and True as Archived values, neither works. It always ends up as "No" in SharePoint.
Any ideas?
Chris