I need to get a specific file in the SitePages of a SharePoint Online site collection. I know how to get all pages with PnP (see code below), but I need only one specific.
Export & Import of all sites:
Connect-PnPOnline -url https://contoso.sharepoint.com Get-PnPProvisioningTemplate -out template.xml -Handlers PageContents -IncludeAllClientSidePages Connect-PnPOnline -url https://contoso.sharepoint.com/sites/anothersite Apply-PnPProvisioningTemplate -path template.xml
I checked the .xml in Visual Studio and found elements like "PageName" and "Title" but I can't get it to work. Any ideas? I don't want to edit the complete export in Visual Studio and use that. I has to be easier right?