Exporting xml script from SharePoint
First create new folder mkdir i.e. demo to house your exported xml.
Next connect to your SharePoint Online site
Connect-PnPOnline -url https://yourtenent.sharepoint.com/sites/mysite
then run the following command to retrieve the pages xml
Get-PnPProvisioningTemplate -out C:\demo\articles.xml
Navigate to view newly created xml file via command
explorer C:\demo\article_xml
when you have updated your xml to your specifications run the following command to apply the edited xml to your selected site i.e. mysite
Apply-PnPProvisioningTemplate -Path C:\demo\articles_xml\
Top comments (0)