Sep 05 2020 10:23 PM
Sep 05 2020 10:23 PM
I am hoping someone might be able to assist with a little challenge I have been fighting with in a SharePoint Online Communication Site.
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:
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.
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????
Can anyone please assist me on how this can be achieved it's driving me crazy.
Sep 06 2020 10:59 AM
Sep 06 2020 01:32 PM
Sep 06 2020 01:44 PM
Sep 06 2020 03:07 PM
Sep 07 2020 12:37 AM
Ya I have also tried that but CAML queries don't appear to work at present and KQL only supports queries on the current site collection as far as I can see. :( The whole query/ filter functionality seems very flaky at the moment.
The question is why doesn't "Doesn't contain" work as expected. ;) This appears to be a bug as does the fact that the webpart says you can use either CAML or KQL but CAML isn't working.
Or perhaps I am doing something incorrect?
<FieldRef Name='Function' />
<FieldRef Name='BusinessRole' />
Sep 07 2020 06:29 AM
Sep 07 2020 10:21 AM
I thought I should point out this is an issue that over 900 others are fighting with according to uservoice. I am happy I am not going mad... ;) It would appear this is a major problem with the way that the filter functionality has been implemented in the "Highlighted Content" and "New" webparts. Please read the uservoice suggestion for further details.
But to cut it short if you use multiple columns and refer to the same column twice it acts as an OR not and AND statement, making it very difficult to implement a filter that subtracts results.
Please vote for this if you are also having the same issue. (See link below)
Sep 07 2020 10:53 AM