Forum Discussion
Jarrett Haynes
Dec 07, 2017Copper Contributor
Copy Site Pages (ClientSidePage) Site to Site
One of the items I've been trying to tackle is how to move a site page between site collections (two different communication sites). In the same Site Pages library, this is simple. The usage case s...
Prabath Fonseka
Dec 19, 2018Copper Contributor
Hi Alexander Tihme,
PnP worked for me :)
My approach was simple. I downloaded the page as a file to my local machine using;
Get-PnPFile -Url '/sites/intranet/SitePages/myfile.aspx' -Path 'C:\Pages' -Filename 'myfile.aspx' -AsFile
Then upload to the target site using;
Add-PnPFile -Path 'C:\Pages\myfile.aspx' -Folder "SitePages"
You will have to change some Webpart settings after the file is uploaded.
Thanks to PnP Team
Cheers!
Prabath
JoostvdLinden
Jan 06, 2020Brass Contributor
Looks like a proper business process flow