Forum Discussion
PNP Modern Search People - Show Department/Office as filter
- Sep 07, 2022
For that managed property is the OfficeNumber If you want to get only value but you can't use it for refiners.
You have to map "People:Office" crawled property to any RefinableString*** managed property and then you could use it in refiners.
Important: It might take some time to fill RefinableString managed property which you use for existing user profile (According to my past experience it took 2 days !!!).
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
Thanks!
I can see the variable I want to get is in fact, Office.
In your example that's 131/1104. Do you have any idea how I can find out what this is in the search schema?
For that managed property is the OfficeNumber If you want to get only value but you can't use it for refiners.
You have to map "People:Office" crawled property to any RefinableString*** managed property and then you could use it in refiners.
Important: It might take some time to fill RefinableString managed property which you use for existing user profile (According to my past experience it took 2 days !!!).
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- EMIL_K_DITSep 13, 2022Brass Contributor
Department still not showing in my filters - any idea what I am missing here?
From user properties:
From search schema:
Filter:
Results that only show Title (There is nothing when scrolling down):
- kalpeshvaghelaSep 13, 2022Steel Contributor
Make sure that you connect your search web part to filter web part as well as shown in below screen shot:
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- EMIL_K_DITSep 13, 2022Brass Contributor
kalpeshvaghela thanks I did check this but no luck 😞
It seems like something obvious I'm missing here.
- EMIL_K_DITSep 07, 2022Brass Contributor
kalpeshvaghela thanks a bunch!!
Now we wait..- denisse2210Mar 15, 2023Copper ContributorHi, so after adding the RefinableString** with People:Office, what will it look like on the Filter Field (PnP Filters WebPart)... Will it show up as Office now?
- kalpeshvaghelaSep 07, 2022Steel Contributor
You are welcome. Sharing is caring 🙂If it will work for you then you can mark my response as best response or like my response so that it can be helpful to others in the community
- EMIL_K_DITSep 11, 2022Brass Contributor
@kalpeshvaghela sorry for reviving this, but I have created a similar thread regarding Department here: https://techcommunity.microsoft.com/t5/sharepoint/pnp-modern-search-people-show-department-office-as-filter/m-p/3619446/emcs_t/S2h8ZW1haWx8bWVudGlvbl9zdWJzY3JpcHRpb258TDdSTEhRWko2UEZPVEF8MzYxOTQ0NnxBVF9NRU5USU9OU3xoSw#M63776
I am configured to Filter on 'Department' and users do have 'Department' in their user profiles added to 70 users this Friday as POC, but it just will not budge. Any chance you might have an idea what I am missing here?