GetWebCollection

Coordinator
Jan 12, 2010 at 3:16 PM
Edited Jan 12, 2010 at 3:22 PM

From webdes03: Any ideas why SP web service GetWebCollection would return all top level sites, as opposed to those in the current collection?

Currently, the GetWebCollection documentation doesn't show any options.  However, you should be able to all it with webURL set to the Web (site) from which you'd like to obtain the Web Collection.

M.

Coordinator
Jan 12, 2010 at 3:21 PM

I'm webdes03, but I can forgive you for confusing me with someone who's obviously far more intelligent and doesn't bug you all the time ;-)

Coordinator
Jan 12, 2010 at 3:23 PM

Through the miracles of rapid editing, you are webdes03 once again.  And you don't bug me: we collaborate on solutions. (Now if I could just get you to pay me...)

Try passing the webURL option.  It ought to work even though the documentation didn't show that it would.  (I've updated the docs.)

M.

Coordinator
Jan 12, 2010 at 3:25 PM
Edited Jan 12, 2010 at 3:27 PM

You are the man!

And, it even works behind a DNS alias which surprised me... I thought I'd have to give it the ugly URL.

 

Coordinator
Jan 12, 2010 at 3:47 PM

Excellent!