SharePoint Hightlighted content WebPart Custom query

%3CLINGO-SUB%20id%3D%22lingo-sub-2213352%22%20slang%3D%22en-US%22%3ESharePoint%20Hightlighted%20content%20WebPart%20Custom%20query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2213352%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20a%20SharePoint%20Hightlighted%20content%20WebPart%20it's%20possible%20to%20add%20custom%20queries%20to%20filter%20documents%20and%20elements.%20I%20can%20use%20custom%20queries%20for%20user%20properties%20or%20others%2C%20but%20for%20URL%20parameters%20like%26nbsp%3B%3CSPAN%3E%7BQueryString.%3CPARAMETERNAME%3E%7D%20it%20doesn't%20work.%3C%2FPARAMETERNAME%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20target%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20would%20like%20to%20show%20documents%20in%20a%20Highlighted%20content%20webpart%20based%20on%20url%20parameter.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20custom%20query%20in%20the%20highlighted%20content%20webpart%20looks%20like%3A%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E(Path%3A%22https%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2F%3CSITE%3E%2FFreigegebeneDokumente%2F%22)%20AND%3CBR%20%2F%3E%7B%7C%7BRefinableString07%7D%3A%7BQueryString.Prozess%7D%7D%3C%2FSITE%3E%3C%2FTENANT%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20URL%20looks%20like%20this%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3CSPAN%3Ehttps%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2F%3CSITE%3E%2FSitePages%2FProzessseiteURLFilter.aspx%3FProzess%3DB%26nbsp%3B%20Personal%3C%2FSITE%3E%3C%2FTENANT%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20inputs.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2213352%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2565094%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Hightlighted%20content%20WebPart%20Custom%20query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2565094%22%20slang%3D%22en-US%22%3EI've%20tried%20to%20use%20just%3CBR%20%2F%3E%3CBR%20%2F%3E(Path%3A%22https%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2F%3CSITE%3E%2FFreigegebeneDokumente%2F%22)%3CBR%20%2F%3E%3CBR%20%2F%3Eand%20it%20doesn't%20work.%3C%2FSITE%3E%3C%2FTENANT%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

In a SharePoint Hightlighted content WebPart it's possible to add custom queries to filter documents and elements. I can use custom queries for user properties or others, but for URL parameters like {QueryString.<ParameterName>} it doesn't work.

 

My target:

I would like to show documents in a Highlighted content webpart based on url parameter.

 

My custom query in the highlighted content webpart looks like:  

(Path:"https://<tenant>.sharepoint.com/sites/<Site>/FreigegebeneDokumente/") AND
{|{RefinableString07}:{QueryString.Prozess}}

 

My URL looks like this: 

https://<tenant>.sharepoint.com/sites/<site>/SitePages/ProzessseiteURLFilter.aspx?Prozess=B  Personal

 

Thanks for inputs.

0 Replies