How to get all the sites under a SharePoint Online Site Collection

This script allows to list all the SharePoint sites under a SharePoint Online Site Collection. The script defines a function that uses the Client Side Object Model as mechanism to get all the sites under the specified Site Collection. In order to use the Client Side Object Model

 
 
 
 
 
(0)
1,286 times
Add to favorites
Office 365
7/30/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How to exclude my custom apps from appearing
    2 Posts | Last post July 15, 2016
    • Juan,
      Your code has been a great start for me. The one challenge I'm having is that the "for" loop is returning my custom apps along with the sites/subsites. Is there a way from my to exclude any custom apps?
      
      Thanks,
      Edward 
    • Try to add a condition to the script that checks if in the site name there is something like https://<YourOffice365Domain>--, then it has not to be written in the output