Forum Discussion

kath patterson's avatar
kath patterson
Iron Contributor
Nov 21, 2017

PnP provisoning powersehll - obtaining the webpart friendly name (Alias)

to do this programmatically is more tricky than it appears. This has been explored in the GitHub thread below and a suggested powershell solution put forward. I thought it might come in handy to repost that here.

https://github.com/SharePoint/PnP-PowerShell/issues/1095#issuecomment-345565755

 

Indeed, unfortunately the alias is extracted when outputting the list at runtime from the manifest of the client component through JSON parsing as there is no Alias property as such from what we receive from the server. You can retrieve the alias property as follows:

$components = Get-PnPAvailableClientSideComponents$components | ForEach-Object{(ConvertFrom-Json $_.Manifest).alias}

Alternatively, given a specific component

(ConvertFrom-Json $component.Manifest).alias

 

 

No RepliesBe the first to reply

Resources