I'm trying to filter the results of the Highlighted Content web part a bit more than is available in their pre-built filters.

I'm in Office 365 (corporate) and my SharePoint page is in the same group as the files I want to display. For the life of me I cannot figure out this custom query.

The files:

  • PDFs
  • All filenames have (WI_PIP) at the start of the file name
  • Are nested inside a few folders (Group Name / Documents / Group One / WI / PIP)

Any help is greatly appreciated. The goal is to only show the PDF files within the PIP folder. I'm confused on how to handle spaces in folder names as well in these queries.

Here is what I have so far, but the web part simply displays the three folders within Documents, nothing else.

            <FieldRef Name="FileDirRef" />
            <Value Type="Text">/Group Name/Documents/Group One/WI/PIP</Value>

1 Answer 1


Use custom query like this:

Path: "https://tenant.sharepoint.com/sites/siteName/SharedDocuments/General" FileType: pdf

Use correct folder URL in Path.


enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.