Forum Discussion
Move/Copy SharePoint Pages from one Site to Another in Classic View
- Jul 14, 2021
Corbenik you can also copy pages, including any images on them, to a different site using a simple flow in Power Automate:
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Steven Andrews I'm the site collection admin. I switched to the classic view as I heard (and saw) that there was no way to do this with the modern interface
On clicking that copy command I get taken to the copy prompt and after filling in the necessary details like the destination URL and clicking ok :
It would ask me to request permission, and even if go through with that and then grant myself permission (which is strange as I'm already the site collection admin for both source and destination sites), when I try to copy again it says I need permission again.
Corbenik you can also copy pages, including any images on them, to a different site using a simple flow in Power Automate:
Rob
Los Gallardos
Microsoft Power Automate Community Super User
- gcriddle1Aug 16, 2024Copper ContributorI am struggling with the identifier dynamic variable here. If you use the list ID it tries to map a filepath to the id which of course doesn't work. ChatGPT told me to use get file metadata instead of get file properties but it is still giving me an error. Can anyone please help??
- MasatoIndouMay 06, 2025Copper Contributor
Hi gcriddle1 - I'm Corbenik, lost my account so had to start this new one :) , the original solution from Rob Elliot still works, in fact the exact same flow I built as per Rob's instructions back in 2021 and now have replicated in my new space still works exactly as it did before.
Not sure if anyone's answered you yet but if you post your flow here we'll be able to see what might be going wrong for you :)
- RHCPNGJul 02, 2024Copper Contributor
Hi all,
I found out that the original solution of RobElliott still works, if you use the Library ID instead of the name.
You can read how to find the ID here:
https://tomriha.com/how-to-get-sharepoint-document-library-id/
Then you can still use a button to migrate a page.
I you use solutions, you have to use different values for actionParams in the column formatting, see here:
https://wonderlaura.com/2018/07/18/button-in-sharepoint-list-to-trigger-microsoft-flow/#:~:text=Hi%20Laura!%20I,1234%2D1234%2D123456789012%5C%E2%80%9D%7D%E2%80%9D%7D
Hope this helps.
- Gladys AguileraJul 31, 2023Copper ContributorCan I copy an specific page from a Site to another? or have to be all of them like it shows
- liz360Aug 09, 2023Copper ContributorIt copies all of them. So as a workaround, I copy the pages to a folder I create first in the destination site. Then copy or move the page you want and delete the rest in the folder.
(FYI: I used reddimension's solution)- Gladys AguileraAug 09, 2023Copper Contributorthank you
- Gladys AguileraJul 31, 2023Copper ContributorHi this solution is to copy all the pages from a site to another right?
also, option for Library Name: Site Pages - ( we type the Site Pages words right? because is not an option ) - Ravi_LamontagneMay 19, 2023Copper ContributorIt still works contrary to what is mentioned later in the chat.
- Cestode167Jul 27, 2022Copper Contributor
I tried to do this exact flow, but It will not let me test it, nor do I have an option to run the flow.
What am I missing?
- Lance_Corporal_LeviJun 29, 2022Copper Contributor
Hello Rob I am facing an issue while creating the flow can you please help me with do I have to add the copy column first and than add create the flow?
- ReddimensionJun 06, 2022Brass Contributor
RobElliott For anyone reading this in the future. This method didn't work for me (and some others in this thread. From what i can tell Power Automate has changed a bit and this method doesn't work).
So here is the updated version as of 2022: (as a bonus: This works for site assets too i'd imagine (not tested yet)
- JLRNov 28, 2023Brass ContributorThank you! Works as advertised.
- Ravi_LamontagneMay 19, 2023Copper ContributorYours work as well but perform a different function from that of @RobElliot. @RobElliot flow copies files individually and yours copy all files right away.
- liz360Dec 13, 2022Copper Contributor
Reddimension, thanks so much for posting this! I'm new to Power Automate but muddled my way through thanks to your included example and the site page copied over successfully. Much appreciated!
- hportCLMay 13, 2022Brass Contributor
RobElliott I couldn't get this to work. The identifier dynamic content was never offered. I am an admin too so not sure why. Any suggestions.
- ReddimensionJun 06, 2022Brass Contributor
hportCL Same for me. i've tried and tried but that "identifier" never comes up when i select "Site Pages"in tyhe "Get Files" step. When i use one of the Libraries from the dropdown list it works fine but i'd reckon it's something when the "Get File" Step not reading the "Site Pages"Correctly (Hence returning no options).
I've not been able to figure out why. Clearly it works for others in this thread so i'm rather stumped
- Rie0205Sep 08, 2021Brass Contributor
Hello, I might have missed the info, but what should be the trigger for the flow you shared in the forum. I built the flow as you instructed but can't 'Run' the flow without the trigger... Any advice?
Thank you.
- RobElliottSep 09, 2021Silver Contributor
Rie0205 the trigger was "For a selected file" but you have to have selected the file first in order for the flow to trigger. That was done with the JSON-formatted button in the list. You have to run it first from the button before you can then use the test at the top right in Power Automate.
Rob
Los Gallardos
Microsoft Power Automate Community Super User- Rie0205Sep 28, 2021Brass Contributor
RobElliott and Corbenik
With the flow created as instructed, I see that the text contents are transferred perfectly. However, I didn't get images transferred to the 'Site Assets' folder. Therefore, the page looks like the attached image on the end-users screen. Am I missing something? Appreciate your help!
- CorbenikSep 08, 2021Brass Contributor
Not sure what RobElliott used but for mine I used the "Instant Cloud Flow" trigger as the flow needs to be triggered manually on selecting items
Hope this helps
- RobElliottSep 09, 2021Silver Contributor
Corbenik instant cloud flow isn't a trigger, it's just a type of flow (and is the one I always use whether the trigger is manual, a recurrence, something from SharePoint etc). In my example the trigger was the SharePoint "For a selected file".
Rob
Los Gallardos
Microsoft Power Automate Community Super User