How to insert a list item into a folder in a list using a list of web services (UpdateListItem).
The wand in the folder will be something like this. [My site]> [My list]> [My folder]
I tried with CAML as follows:
<Batch PreCalc="TRUE"
OnError="Continue"
RootFolder="/Lists/MyList/MySubFolder">
<Method ID="1" Cmd="New">
<Field Name="Title">Gent</Field>
<Field Name="PostalCode">9000</Field>
<Field Name="TelephoneZone">09</Field>
</Method> </Batch>
But unsuccessfully.
I get a response: Invalid URL value.
** If I remove the RootFolder attribute, it works fine, but the item is inserted outside the folder.
source
share