top of page

Keeping track of your FAQ web parts

  • Writer: Kasper Larsen
    Kasper Larsen
  • Jul 5
  • 2 min read

Microsoft has started to roll out the new AI driven FAQ Web part (see this for info on how to use it, This NEW SharePoint Feature Just Killed Manual FAQ Creation Forever) or the official intro to the web part: Introduction to AI powered SharePoint FAQ web part


FAQ based on some of the content on my employer's web site
FAQ based on some of the content on my employer's web site

I really like the new web part, but as an information architect and governance nerd I am concerned about the content in these web parts becoming irrelevant or outright wrong over time.

We therefore need some straightforward way to locate WHERE these web parts are used and WHAT they contain. If the web parts are used on pages already covered by your existing Content Governance Policy, I salute you.

If you don't have a Content Governance Policy or the web parts are used outside the coverage of the policy, than this might be useful:


ree

Since each web part has a unique ID and that ID is available in the search index, we can use PnP Modern Search to create an overview page.


1) Set the Query Template to look for this GUID in the SPFxExtensionJson property


{searchTerms} SPFxExtensionJson:"481a605c-a625-487f-b731-96568350430c" -Path:{Page}


(-Path:{Page} prevents the search page itself to show up in the results :-) )


2) Add SPFxExtensionJson to "Selected properties"

3) Select the List layout

4) In the Layout slots change the Summary slot to use SPFxExtensionJson as the slot field

5) add a Search box and refiners as needs

6) DONE


As always Search will only show content that you have access to, so if you need to see every FAQ (or other) web part then you will have to use another approach. In this case I would create an Azure App Registration with a certificate, with Application permissions to read every SharePoint site, and use PnP PowerShell (Submit-PnPSearchQuery) to locate the page where the web part is used.

I might add this PowerShell script to the PnP Script Samples repo during the summer


 
 
 

Comments


30103817

  • Twitter
  • LinkedIn

©2023 by M365thinking. Proudly created with Wix.com

bottom of page