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...
SamMisemer
Jun 25, 2020Copper Contributor
I have had success using MS Power Automate (aka Flow).
I apologize if anyone thinks this is "off topic" but you can achieve this very simply using MS Power Automate AKA Flow (tested 6/25/20) and the SharePoint connector and Copy File action.
Create an instant flow, add the manually trigger a flow trigger, and add the SharePoint Copy File action. See the image below, you can choose the exact file you want to copy, and the destination folders in a separate site. I'm creating a more complex flow that uses a "template" site to copy the "template" pages after the fact when I create a new O365 group (and associated site).
My case is an educational environment and letting the content creators (teachers!) be able to make supplemental or main online courses WITHOUT having to be a sharepoint design whiz. I create the O365 group, let the server make the site and team, then run my flow and copy the template pages to the new site, and the teachers can create a new course site based on existing approved branding/structure.
HTH!
-SCM
Sam Misemer
- Ruth ShyerOct 08, 2022Copper ContributorSamMisemer THANK YOU! I've been searching for an alternative to PowerShell. This solution is Perfect!
- IanCaldwellJan 19, 2021Iron Contributorsam - perfect, much easier than powershell.
- vlukeJul 09, 2020Copper Contributor
SamMisemer THANK YOU! This was the most amazingly simple solution. Definitely looking forward to using Automate more for tasks like this!
- SamMisemerJul 10, 2020Copper Contributor
🙂 Thank you! I am glad it helped. I went crazy trying to figure out how NOT to recreate the wheel each time I made a new course group/site and tried this and happily found my solution.
There are now scripts to create some template sites, which basically run after the site creation and automate a lot of changes, but they're a lot more technically complicated. This is by far the easiest way I have found to do this. Take a look though at the scripts if you want, it might fit your solution better.
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
Feel free to ping me if you need help in the future!
-SCM