As the Site Collection Administrator, I don't have access to the servers to write server side code to get a listing of all sites in my site collection. I can write sandbox solutions in SP2010 to get a listing of all sites by using the SPSite AllWebs like this,
using (SPSite site = new SPSite(SPContext.Current.Site.ID))
{
SPWebCollection webs = site.AllWebs;
foreach (SPWeb thisWeb in webs)
{
//Do something
}
}
but AllWebs doesn't exist in the Client Object Model. So, how can I get a listing of all sites recursively without having to manually walk each parent site? As the SCA, it's necessary for me to know who's creating what and how often sites are used, etc.
Thanks
here:
http://sharepoint.stackexchange.com/questions/88795/list-of-sites-and-subsites-in-the-given-url ]
– Ali Jafer Jul 31 '14 at 21:38