Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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.