1

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.

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

Use custom query like this:

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

Use correct folder URL in Path.

Example:

enter image description here

1
  • 1
    I knew it was something simple. Thank you! Nov 9 '21 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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