Forum Discussion

Tamras1972's avatar
Tamras1972
Iron Contributor
Jul 18, 2024
Solved

SharePoint Search Query exclude specific pages based on custom field value

In our [site pages] library, we added a [Status] column with values [Current, Archive, Draft].  Essentially, in the search results, I only want site pages that have 'current' status.  Is it possible ...
  • Expiscornovus's avatar
    Expiscornovus
    Jul 20, 2024

    Tamras1972 my first suggestion would be to double check what the internal name of the field is. You can find that in the library settings. Below is an article on how to find the internal name of your custom status field:

    https://elliskarim.com/2021/12/20/finding-the-internal-name-of-a-sharepoint-column/

     

    This way you can find which one you would need to add to a mapped property. My suggestion would be to use one of the RefineableString ones from Microsoft for the mapping.

Resources