Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
    
U mean to use jquery or javascript –  Vishal_Sharepoint Jan 4 '12 at 11:25
    
If you're building an add-in to Outlook I guess you're using .NET. CSOM has API's for .NET, Silverlight and JavaScript. –  Wictor Wilen MCA MCM MVP Jan 4 '12 at 11:26
    
Hi wictor I develop outlook application first time so i don't have much knowledge.Plz explain in brief –  Vishal_Sharepoint Jan 4 '12 at 11:29
    
A quick Bing on the topic gave me this: msdn.microsoft.com/en-us/library/cc668191.aspx –  Wictor Wilen MCA MCM MVP Jan 4 '12 at 11:35

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>
share|improve this answer
    
Thanks Mohit I will try –  Vishal_Sharepoint Jan 5 '12 at 5:05
    
@VbPatel I have added the exact xml to my answer. –  Mohit Jan 5 '12 at 5:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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