This is perhaps the tinyest post I’ve made to date.
I often need to find the GUID of a site for ny various search querys. There are many ways to acheive this, but the quickest to date is to use the API through the SharePoint URL in your browser:
https://tenant.sharepoint.com/sites/sitename/_api/site/id
If your scope is the hubsite you’re searching from, this is a even quicker approach when doing a KQL search:
DepartmentId:{{Hub.HubSiteId}}
Leave a Reply