2

I am attempting to export the definition of all managed properties for am online site collection. The connection to the site works find and SharePointPnPPowerShellOnline returns an object, but it contains only one value. The CompleteXML option also return only one result.

FWIW, the Admin ran the export option for in the Admin Center and as expected on the Subscript level properties appeared , and in CompleteXML format.

Here is what I ran and the results: The code is pretty much a single line

Connect-PnPOnline -Url $web -Credentials $mycreds

$ssa = Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings

Write-Host $ssa

Name Aliases Mappings Type RefinableString10 {TitleRS} {Title} Text

2
  • could you provide your code? I will test it in my environment.
    – Kally_MSFT
    Jun 25, 2019 at 9:04
  • The code is pretty much a single line Connect-PnPOnline _Url $web -Credentials $mycreds $ssa = Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings Write-Host $ssa ## Name Aliases Mappings Type ## RefinableString10 {TitleRS} {Title} Text Jun 25, 2019 at 18:21

1 Answer 1

1
Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings

The cmdlet is used to return all custom managed properties and crawled property mapping at the current site collection

So, check the custom managed properties and crawled property mapping at your site collection via UI to find if there are only one value matched.

2
  • Kally, does custom managed properties mean that the Refinable managed properties are excluded (there or 35 of them in the site I'm testing)? If so, is there another technique to obtain this information without going through the UI? Jun 26, 2019 at 12:39
  • I ran a few extra tests. The cmdlet provides the correct result connected to an On-prem site. I also had an Admin run the cmdlet on the SPO site, with the same results. Jun 28, 2019 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.