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
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.
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!
- FlyingDutchman1080Nov 18, 2021Copper ContributorCreated flow and button according above but only header was copied and not the page content.
New suggestions please- JohnMoore33Dec 17, 2021Brass Contributor
You can try using Create New File rather than copy. (I used another trigger instead of json button in list, my flow triggers when page is modified).
Note that you have to set specific permissions when you want to copy SitePages using Power Automate. Even if the user is owner of the site you'll get an access denied, unless you change the"-DenyAddAndCustomizePages $false"
using powershell as explained in this blog post.
- Jason E. HeiserApr 08, 2022Iron ContributorRie0205 Did you figure out a solution for copying the images over?
- Rie0205Apr 19, 2022Brass ContributorUnfortunately, no. We ended up purchasing the third party application called ShareGate. It works perfectly. But As others mentioned, it is strange to me that MS isn't providing a solution to such a simple and common action the end users need.