Forum Discussion
Nigel_Price9911
Feb 20, 2018Iron Contributor
Is there a way of adding a ClientSidePageto an existing PnPProvisioningTemplate using PnP PowerShell
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
No RepliesBe the first to reply