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

Regular Contributor


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 ?





0 Replies