SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
Thanks Andrey. Your answer gave me the idea. My code is almost complete. – Fatima Fauzia Feb 28 '13 at 3:59
If the answer was helpful for you, please mark it as accepted. – Andrey Markeev Feb 28 '13 at 7:04

Your Answer


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.