Is there a way of adding a ClientSidePageto an existing PnPProvisioningTemplate using PnP PowerShell

Highlighted
Regular Contributor

Hi

I can get an existing template using PowerShell using :-

 

[xml]$TemplateXML = Get-Content "<path to PnPProvisioningTemplate>"

 

I can get a ClientSidePage by using :-

 

$myClientSidePage = Get-PnPClientSidePage -Identity Test%20of%20Scrolling%20text.aspx

 

But I cannot get the XML for this because :-

 

Cannot convert value "OfficeDevPnP.Core.Pages.ClientSidePage" to type "System.Xml.XmlDocument". Error: "The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type."

 

Is there another way of adding ClientSidePages to an existing PnPProvisioningtemplate ?

 

Thanks

 

Nigel

0 Replies