Quantcast
Channel: Question and Answer » web-services
Viewing all articles
Browse latest Browse all 136

Accessing Metadata from a Subsite/Web Efficently

$
0
0

Here’s my scenario; I have a parent site with up to a few dozen child sites off of it (2010 environment).

I want to be able to get metadata about each site, for example a date relevant to that site. The way I’ve been doing that is creating a List on each site to contain said metadata, and adding one list item.

To access, I’m using the Webs.GetWebCollection on the parent site, and then Lists.GetListItems to retrieve the metadata for each.

This is obviously not ideal, as it comes out to n+1 webservice calls (where n is the number of subsites). However I can’t seem to find a way to do this better. GetWebCollection only returns a Title and URL, with nothing else. How could I easily retrieve metadata on from a site itself?

Any advice is much appreciated, thank you!


Viewing all articles
Browse latest Browse all 136

Trending Articles