Forum Discussion
Highlighted Content WebPart and Managed Property Filter HELP
I am hoping someone might be able to assist with a little challenge I have been fighting with in a SharePoint Online Communication Site.
Scenario:
I am trying to use a Highlighted Content WebPart with metadata from 2 Site Columns (Term Store) in a page library, to filter the content from multiple site collections in the Highlighted Content WebPart .
I have created 2 Custom Site Columns:
- BusinessFunction
- Sales
- Marketing
- Technical
- BusinessRole
- Director
- Dept. Manager
- Sales Rep
- Employee
Both site columns are "Managed Properties" in the tenant search scheme and I am able to filter content from a single Site Column by using a filter. However things get a little strange when I add the second column into the filter.
The business roles have a 1 to many relationship with the business function.
IE: Marketing, Sales and Technical all have a Director Role.
Question:
Is there a simple way to setup the Highlighted Content filter to query the site columns within the Highlighted Content webpart so I ONLY return items related to for example: Sales Director?
When I setup the below filters on the webpart I would expect to only retrieve the Sales Director information that has been tagged with the BusinessFunction: Sales and BusinessRole: Director… But I don't????
Filters:
owstaxidBusinessFunction
Doesn't Contain
Marketing
owstaxidBusinessFunction
Doesn't Contain
Technical
owstaxIdBusinessRole
Contains
Director
Can anyone please assist me on how this can be achieved it's driving me crazy.
8 Replies
- Have you tried Filter owstaxidBusinessFunctions contains Sales and a second filter owstaxidBusinessRole contains Director? With two separate filters, the filters will have an implied AND and you should retrieve content for Sales AND Director.
- pointconsultingCopper ContributorHi Susan,
First let me say how much I loved you Governances guidance and sessions you have done.
To answer your question yes I have:
It returns all Sales posts no matter the owstaxidBusinessrole and all Director posts no matter what the owstaxidBusinessFunction is.
Example results:
In other words all posts with the below metadata.
Sales Director
Sales Dept. Manager
Sales Sales Rep
Sales Employee
Marketing Director
Technical Director
Any other ideas would be gratefully appreciated. 🙂- Thanks for your kind words. If you want to ensure the AND query and that is not what you are seeing, you will probably need to use the custom query option. The syntax is more complicated but you should be able to get exactly what you want.
- pointconsultingCopper ContributorHi Susan,
Thank you for the reply and let me take a second to say that I love the Governance session you have done at Ignite in the past.
With regards to your response! Unfortunately if I create the filter you suggested it returns all posts marked with Sales & all posts marked with Director.
So I would get:
All OwstaxidBusinessFunction marked with Sales and all owstaxidBusinessRole marked with Director
Example of results:
Sales Director
Sales Dept. Manager
Sales Employee
Marketing Director
Technical Director
I only want to return Sales Director posts. Any Ideas?