Hi,
I'm building a windows application that search items from sharepoint document libraries, using the built in sharepoint web services.
I can query all documents from a document library.
but my problem is How get all folders in all sub folders from a document library?
i want to get the list of all the folder in a document library, not only in the first level.
below is the query i'm using:
<Where>
<And>
<Eq>
<FieldRef Name="FSObjType" />
<Value Type="LookUp">1</Value>
</Eq>
</And>
</Where>
this query returns all the folders in a document library but in the first level, i can't get the subfolders.
So i tried to add to the query
<QueryOptions>
<ViewAttributes Scope='Recursive' />
</QueryOptions>
and the result of this query is null.
Any help is appreciated.