2

I want to build a office outlook application. I want to display all documents with their folder and documents. I want to get all subfolder and their document file.

In Sort get all document library with their all folder subfolder and documents.

I am able to get all document library with their folders and document but can't get subfolders with their document file.

So it's possible using list.asmx web service?

2 Answers 2

1

I recommend that you take a look at the Client Object Model (CSOM). It's easier and more efficient to use in the scenario that you describe.

4
3

Yes it is possible, when you call getListItems of Lists.asmx the second last attribute is an XMLNode optionQuery . u need to pass the correct xml to get fully recursive list.

xml will go something like this:

<QueryOptions><SomeTag FullyRecursive="True"></sometag></QueryOptions>

I dont remember the exact syntax as i have used it a long back try to find it out.

EDIT

Hey this is the exact xml i used

<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns><Folder>" + "MobileDocs" + "</Folder><ViewAttributes Scope=\"RecursiveAll\" /></QueryOptions>
1
  • @VbPatel I have added the exact xml to my answer.
    – Mohit
    Jan 5, 2012 at 5:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.