Copying a page from one site to another in SharePoint is a feature that is not built in – a useful tool that you might often might want and it’s also a frequent request of users and of the SharePoint community.
We are going to cover 3 different ways of doing it. The last one is the easiest and has more features.
#1 Power Automate
In this scenario, Power Automate enables users to choose the page they wish to duplicate, enter the URL of the target site, and then the flow seamlessly handles the copying process.
- Create a new flow in Power Automate and use the instant cloud flow option.
- Create a for a selected file trigger
- Enter the site address and library name and then add an input
- Select text as the user input type and update the input name and input value placeholder text.
- Add a Get file properties action and configure with the following:
- Source site address of your site pages library
- Enter either site pages, or the ID of your site pages library
- Under Id, select ID from the for a selected file trigger
- Add a Copy file action and configure with the following:
- Current site address: source site address of your site pages library
- File to copy: Identifier from Get file properties
- Destination site address: destination site from for a selected file
- Destination folder: /SitePages
- If another file is already there: copy with a new name (optional)
Now, put your flow to the test: select a site page, input the destination site URL, and run your flow to copy the page.
#2 PnP PowerShell
An alternative method involves using PowerShell:
#Parameters $SourceSiteURL = "https://[Tenant].sharepoint.com/sites/marketing" $DestinationSiteURL = "https://[Tenant].sharepoint.com/sites/branding" $PageName = "[PageName].aspx" #Connect to Source Site Connect-PnPOnline -Url $SourceSiteURL -Interactive #Export the Source page $TempFile = [System.IO.Path]::GetTempFileName() Export-PnPPage -Force -Identity $PageName -Out $TempFile #Import the page to the destination site Connect-PnPOnline -Url $DestinationSiteURL -Interactive Invoke-PnPSiteTemplate -Path $TempFile
#3 Torpedo’s Copy Page to Site – Extension for SharePoint
This is our extension that allows non tech-savvy users the ability to copy or move pages to another site, including version history.
This powerful SharePoint Framework (SPFx) extension simplifies the task of copying or moving site pages across different site collections or webs. Throughout the guide you can find here, we’ll demonstrate how to utilize the Torpedo extension’s intuitive interface effectively.
Copy Page to Site: an extension for SharePoint
Ready to enhance your SharePoint experience?
Contact us for:
- Intranet and Portals: Personalized solutions just for you.
- Application Development: Intuitive, scalable, and secure solutions.
- Consultancy Services: Expert advisory solutions.
- Outsourcing: Maximize productivity.
- Support and Maintenance: Keep your applications running seamlessly.
If you are interested in learning more about us and how we can help you, contact us.
You can also check out our blog for more articles and insights on Microsoft 365 technologies.