Not able to get all custom managed properties from search using Get-PnPSearchConfiguration cmdlets #4298
Unanswered
ssuryavanshi5
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As, I want to get all refinable managed properties and their mapped crawled properties using pnp powershell module but I could not found any cmdlets for it. SharePoint site has multiple custom properties using Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings it returns only 7 custom properties and their mapped crawled properties (not all custom properties) .
Code:
Install-Module PnP.PowerShell -Scope CurrentUser
Import-Module PnP.PowerShell
Prompt the user for the url , clientId and filter property
$url = Read-Host -Prompt "Enter SharePoint URL"
$clientId = Read-Host -Prompt "Enter ClientId"
try {
Connect-PnPOnline -Url $url -Interactive -ClientId $clientId
$ManagedProperties = Get-PnPSearchConfiguration -Scope Site -OutputFormat ManagedPropertyMappings
So, need help like how can i get all refinable managed properties and their mapped crawled properties uisng pnp powershe module.
Beta Was this translation helpful? Give feedback.
All reactions