Lists Web Service
Windows SharePoint Services 3
The Lists Web service provides methods for working with SharePoint lists, content types, list items, and files.
To access this Web service set a Web reference to http://<site>/_vti_bin/Lists.asmx.
For examples that show how to use this service, see methods of the Lists class.
Create new list item inside sub folder
$0If you want to create an item list directly in a sub folder you can use the following query:
<Method ID='1' Cmd='New'>
<Field Name='FSObjType'>0</Field>
<Field Name='BaseName'>MyFolderName/MyItemTitle</Field>
<Field Name='Title'>MyItemTitle</Field>
<Field Name='MyFirstFieldName'>MyFirstFieldValue</Field>
<Field Name='MySecondFieldName'>MySecondFieldValue</Field>
.
.
.
<Field Name='MyLastFieldName'>MyThirdFieldValue</Field>
</Method>
PS. the folder must be created before executing this query.
$0
<Method ID='1' Cmd='New'>
<Field Name='FSObjType'>0</Field>
<Field Name='BaseName'>MyFolderName/MyItemTitle</Field>
<Field Name='Title'>MyItemTitle</Field>
<Field Name='MyFirstFieldName'>MyFirstFieldValue</Field>
<Field Name='MySecondFieldName'>MySecondFieldValue</Field>
.
.
.
<Field Name='MyLastFieldName'>MyThirdFieldValue</Field>
</Method>
PS. the folder must be created before executing this query.
$0
- 9/15/2010
- Med.Cherifi
- 7/15/2011
- giri123