Open jolscr opened 5 years ago
I will get the SPLimitedWebPartManager from a specific page to manage webpart connection.
$file = Get-PnPFile -ServerRelativeUrl $pageRelativeUrl $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
error: format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
$file = Get-PnPFile -ServerRelativeUrl "/Wiki/Test.aspx" $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
3.14.1910.1
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I have the same behaviour with SPOnline.
Expected behavior
I will get the SPLimitedWebPartManager from a specific page to manage webpart connection.
Actual behavior
$file = Get-PnPFile -ServerRelativeUrl $pageRelativeUrl $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
error: format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
Steps to reproduce behavior
$file = Get-PnPFile -ServerRelativeUrl "/Wiki/Test.aspx" $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.14.1910.1
How did you install the PnP-PowerShell Cmdlets?