pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 662 forks source link

Can not get LimitedWebPartManager from Page #2330

Open jolscr opened 5 years ago

jolscr commented 5 years ago

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.

image

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?

ghost commented 5 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

thespooler commented 4 years ago

I have the same behaviour with SPOnline.