How do I loop through all of the subsites within a site collection in SharePoint Online? I have a site collection for project sites and each of those are created based on a template, so they all have the same lists and columns. What I need to do is go through each of those subsites and do custom calculations on a column in a task list on a daily basis. Also, based on those calculations, I need to send an email to the person responsible for those tasks as a reminder that they are coming due, are due, or are past due. But, since the subsites will be created dynamically, I need to loop through them without necessarily knowing they exist, so I can't set it up for specific subsites by name.