Forum Discussion
laceyk
Jan 03, 2024Brass Contributor
Team Sites
Hi I have 1 site collection, where I have created multiple team sites over the last 2 years. A request has come through asking if I can group these by the year they were created. Is there an...
Jan 03, 2024
Hi,
Here is a good example of how to get all the subsites under a Site with PowerShell: https://www.sharepointdiary.com/2018/08/get-subsite-using-powershell-in-sharepoint-online.html
laceyk
Jan 04, 2024Brass Contributor
Hi Juan
Even if I get all the dates from the PowerShell, I still need to group or tag them against the year so that there is a list available within SharePoint Online that users can search on.
I think a better option might be, when creating a sub site put the year (2022) or 2023 after the title name. I can then do a filter on the Content Search Query to look for it.