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

I want to retrive all image/picture lists a site has with javascript. Can that be done via listdata.svc or via a soap webs service? When looking at the response from listdata.svc i can't see what type each list is in the response, so to me it seems like listdata.svc cannot be used? If so, which soap web service is it that i should use instead?

share|improve this question

You'd want to look at the GetListCollection operation of the Lists web service. In the response there'll be a ServerTemplate field. In MOSS 2007, I see picture Libraries having a ServerTemplate of 109.

share|improve this answer
Agreed on the approach. If you want to do it client side, look at SPServices to help you out. link – Marc D Anderson Apr 20 '11 at 19:57
That works too, depends on how he wants to implement the solution. – Eric Alexander Apr 20 '11 at 22:31

If you're in SharePoint 2010, and using JavaScript, just use the ECMA Script Client Object Model.


Some info about the ListCollection class:

This depends on your javascript competency. It does use Object Oriented Javascript which just scares the bejesus out of me (I'm a Server Object Model in C# & .NET Framework-loving cat), but it's another option for you.

share|improve this answer

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.