I have a MOSS List, how can I get the URL for the list from the List name only using web service methods?
+2
A:
For the next poor sucker working without documentation:
/// <summary>
/// The SharePoint Web Service: Lists.
/// </summary>
private readonly sharepoint.lists.Lists wsLists = new sharepoint.lists.Lists();
private string GetListUrlFromName(string listName)
{
XmlNode node = wsLists.GetList(listName);
return node.Attributes["RootFolder"].Value;
}
JL
2010-01-19 13:00:44
:-) Yes, the "RootFolder" is nearly always the answer for Lists.
naivists
2010-01-19 13:11:34