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?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
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. |
|||||||
|
|
If you're in SharePoint 2010, and using JavaScript, just use the ECMA Script Client Object Model. Intro: http://www.codeproject.com/Articles/60348/SharePoint-2010-Client-Object-Model-for-JavaScript.aspx Some info about the ListCollection class: http://msdn.microsoft.com/en-us/library/ff410509.aspx 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. |
|||
|
|