views:

122

answers:

1

I'm using the GetListItems method of the SharePoint List web service. I would like to get all items in a given folder, with a given ID (not path). The method allows you to pass in QueryOptions xml, which lets you set the Folder path. However, since paths can change, this is not that useful to me, and it would be much better to be able to use the ID of the folder instead.

Does anybody know how to do that?

A: 

A workaround - one way you can do it, is to perform two queries - first, to find the folder by its ID (add 'FileLeafRef' to the list of needed fields), then make a recursive query, requiring the items to be in the folder with URL you got in the first cycle.

naivists