tags:

views:

294

answers:

1

I have a list, that has a custom content type, the list also contains subfolders

How can I add an item to the list using web services, in a specific sub folder?

A: 

Dim MyQuery As New SPQuery()

MyQuery.Query = Query ' Set Query

MyQuery.ViewFields = ViewFields ' Set ViewFields

MyQuery.RowLimit = 0

MyQuery.ViewAttributes = "BaseViewID=""1"" Scope=""Recursive"""

MyQuery.Folder = Folder ' Set subfolder of list

MyQuery.Query = Query ' Set Query

Dim MyItemCollection As SPListItemCollection = List.GetItems(MyQuery)

Anand Malli