Alex
Alex

Reputation: 741

what's the correct way to get all lists of a site

I need to get all the lists used in my site and render theire items. Since i'm not allowed to use code i have to rely on something like xlst. However after several days of searching i haven't come up with a solution yet. Any idea on how to do this?

Upvotes: 0

Views: 1158

Answers (2)

moskalevN
moskalevN

Reputation: 358

You can using *.asmx Sharepoint services SharePoint 2010 Web Services. Example from Visual Studio: Connecting to SharePoint Online Web Services and from Sharepoint Designer: Connect to another library in SharePoint Designer 2010

Good luck!

Upvotes: 1

Josh
Josh

Reputation: 1058

Alex depending on what you are trying to do using the client object model may work. This allows you to access SharePoint objects without writing code on the server itself. This does require writing some code but usually a farm admin won't mind it since it doesn't affect SharePoint in any way.

The javascript object model may provide you with what you want.

Here is a link that gets all lists in a SharePoint site

http://msdn.microsoft.com/en-us/library/hh185009

Then to get items from a list

http://msdn.microsoft.com/en-us/library/hh185007

Upvotes: 2

Related Questions