pnp / PnP-PowerShell

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

ConvertTo-PnPClientSidePage needs to have a -TargetLibrary parameter #2617

Open mikey217 opened 4 years ago

mikey217 commented 4 years ago

Reporting an Issue or Missing Feature

With the ConvertTo-PnPClientSidePage cmdlet, I need to write the converted pages to a library other than Site Pages. The source library has many custom columns and the data in those fields gets stripped when the items are created in the Site Pages library, which does not have the custom columns.

Expected behavior

There should be a parameter for -TargetLibrary

Actual behavior

Converted pages are ONLY created in the Site Pages library

Steps to reproduce behavior

ConvertTo-PnPClientSidePage -Identity "SomePage.aspx" -Library "wiki" -LogFolder C:\Temp -LogType File -LogVerbose -Overwrite -CopyPageMetadata -KeepPageCreationModificationInformation -TakeSourcePageName

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.20.2004.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

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