Copying Sharepoint site Pages

Modified on Mon, 13 Mar, 2023 at 9:30 AM

TABLE OF CONTENTS


Overview

This Guide will let you create a Power Automate script that will allow you to copy pages from Sharepoint to another SharePoint.


Guide

In this example we can use Power Automate to allow users to select the page they want to copy, input the site URL they want to copy to and let the flow do its magic!

  • Create a new flow in Power Automate > use the instant cloud flow option.
  • Create a for a selected file trigger > enter the site address and library name.

NOTE: In my example, just entering ‘Site Pages’ resulting in my flow not appearing in the Site Pages library. This seems to be an issue with the for a selected file trigger. In order to get it to show up, I had to use the library ID instead of the library name. To get the library ID:

  • Open the library settings > more library settings
  • Copy everything between List=&7B until %7D – this is the library ID

Copy the library ID which is the numbers between &7B and %7D
  • In the for a selected file trigger > add an input
  • Select text as the user input type > update the input name and input value placeholder text. This user input type will be used to allow users to enter the site URL they wish to copy their pages to.
  • Add a text user input type to allow users to input the destination site URL.
    • Add a get file properties action and configure with the following:
      • Enter the 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: put as Input
          • Destination folder: /SitePages
          • If another file is already there: copy with a new name (optional)




Then from here go the site pages of the Sharepoin you want to copy from.


Then go to the threee dots and go down to power Automate 


Then all you will need to do it put in the URL of the Sharepoin you would like it copied to.



 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article