Forum Discussion
CardinalNight
Mar 27, 2024Brass Contributor
How do I use sp/pnp sp.search to find all Associated sites when querying a hub site Id
I'm making an app which lists all hub sites on an SP tenant. I want a user to click on a hub site and it shows all associated sites. I cannot figure out how to use [sp.search][1] [1]: https://pnp...
DaveMehr365
Apr 15, 2024MVP
Hello CardinalNight
maybe this parameters can help you: https://microsoft-search.github.io/pnp-modern-search/scenarios/Connect-to-a-search-results-webpart/
Best, Dave
CardinalNight
Oct 02, 2024Brass Contributor
Thanks DaveMehr, that webpart just doesn't return any hubsites for me.