Feb 20 2018 04:39 AM
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