I am trying to get all of the lists in a sharepoint site. I would like to be able to obtain the url of the list. Right now when I call GetListCollection(), RootFolder does not come back with the xml. If I call GetList it does, but I don't want to have to call GetList for every list in the site to obtain the urls for all of them.

Using web services is there another service I could use or some better idea how to do this? I want to do everything with the out of the box web services.

I am only dealing with Document Library lists. I have in the past tried to parse the DefaultViewUrl. Do Document Library urls -allways- end in /form/some_view.aspx?

Edit For right now untill I find a better way I am using the following code to obtain the list url. It will get relative url to the site, which can then be combined with the full site url to obtain the absolute list url.

Regex.Replace(DefaultViewUrl, @"/forms/.+\.aspx", string.Empty, RegexOptions.IgnoreCase)
link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.