Can anyone help me with the code to display documents from multiple document libraries using javascript client object model. I have done displaying from single document library.

1 Answer 1


SharePoint doesn't provide any equivalent of SPSiteDataQuery in Client Object Model. Please see the following answer here on SharePoint StackExchange for details:

Thus you have to work with your document libraries separately one-by-one and then merge the results manually and then display the final list of documents. Since you already have the code for a single document library, I think you just have to call this code several times for all of your libraries.

  • Thanks Andrey. Your answer gave me the idea. My code is almost complete. Commented Feb 28, 2013 at 3:59

Your Answer

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

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