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>