Power Automate RPA, SharePoint Sync, Site Pages, No Code

Moving SharePoint Page To Another Site






Power Automate SharePoint Content Sync: Document and Site Page Flows

Power Automate can be used to do all manner of wizardry within your SharePoint environment and beyond. It can supercharge your CRM by connecting it with legacy and modern applications, help normalize data and deduplicate data, and much more. One of the most common requests I get is to copy items (Word Docs, PDFs, Site Pages, etc.) from one site to another. The reasons for this request vary but they all aim to fill in a gap when it comes to content viewing that permissions alone cannot handle.

To accomplish this, you'll need to set up two different flows in your Power Automate Environment.


Flow 1 - Document Sync


Use this for Documents like PDFs, PowerPoints, Word Docs, Excel files, etc. We'll start with the easier of the two flows: the Document Sync.


Trigger: When an item or a file is modified


This is the event Power Automate will listen for to determine when it's time to spring into action. Within this trigger, you'll just need to specify the Site Address and List or Library Name. These should appear within the dropdown lists. Pro Tip: Be sure the account you are connecting to has the appropriate permissions in both the source site and target site.


Action 1: Copy File


Once your first step has been completed, the next step is to take the output of the trigger and copy it to its destination. Here is a list of parameters within this action and what you need to fill in.

  1. Current Site Address: This is the location where your target document resides.
  2. File to Copy: Click into the input field and then select the lightning symbol to populate the data from the previous step. From the list of selections, click the ID option.
  3. Destination Site Address: This is the final destination for your file.
  4. Destination Folder: The folder that will house your target file.
  5. If another file is already there: Specify the action you want Power Automate to take to handle file updates. I generally set this to Replace to avoid creating duplicate files.

With everything filled in and completed, test your flow by first saving it and then clicking the test option in the right-hand corner of the flow builder. Once clicked, choose the option to test manually, confirm, and then add a sample document on your source website.

And, if all goes well, you should see green checkmarks on each step and your source file successfully copied to your target site.


Common reasons flows like these fail.

  • The trigger is not pointing to the correct site or library.
  • The connected as user does not have sufficient permissions to the target site, source site, or both.
  • The trigger is not pulling the correct identifier: Be sure the identifier you have...

Flow 2: The Site Page Sync


This is the more complicated flow that you'll use to handle SitePages which are the files that end in ASPX and house all the content on your SharePoint Web Pages.


Trigger: When an item or a file is modified

  • Site Address: Your source site
  • List or Library Name: For SharePoint pages, you'll need to use the GUID. The SitePages Library will *not* appear in the dropdown so you'll need to find it using the instructions below.

How To Find the GUID In SharePoint:

SharePoint pages can be a little trickier than documents. You won't be able to rely on the Identifier as easily as you would a standard documents library. These directories will not appear in the dropdown. Instead, you'll want to grab what is known as the GUID (Globally Unique Identifier), which allows you to pinpoint exactly where SitePages reside. Fortunately, it's pretty easy to find as it's located right in the URL in your browser.


  1. Go to your source site and navigate to the list or library (e.g., Site Pages).
  2. Click to view the Settings for that list or library.
  3. Once on the Settings page, look at the URL in your browser's address bar.

The GUID is a string of alphanumeric characters that appears within the URL, often enclosed in URL-encoded curly braces, like this: `...List=%7B`. Be sure to exclude any characters that might be thrown in there, for example, the `%7D` and `%7B` aren't part of the GUID. They are actually just html encoding that represent an opening and closing curly brace respectively.

This is what your GUID will look like: `12345678-ABCD-EFGH-1234-567890ABCDEF`.

Once you've located this magical string. It's time to add it to the List or Library Name section.


Action 1: Get File Properties

  • Site Address: Same as above.
  • Library Name: The GUID from the instructions above
  • Id: Select the input field and click the lightning symbol that appears next to the input field. From the list of options that appear, click the ID selection.

Action 2: Copy File

  1. Current Site Address: This is the location where your target SitePages reside.
  2. File to Copy: For this field, we're going to use a custom function to output the name of the SitePage you've pulled during the Get File Properties step. To access functions, click the input field and then select the Fx button. A dialog box will appear. Next, you'll need to enter this function:
    concat('SitePages/',outputs('Get_file_properies')?['body/{Name}'],'.aspx')
  3. Destination Site Address: This is the final destination for your page.
  4. Destination Folder: The folder that will house your target page.
  5. If another file is already there: Set this to replace unless you have specific reason to use the Create option.

Common issues with Copying Site Pages

  • Grabbing the wrong GUID: Double-check your GUID, ensuring there aren't any weird characters or HTML encoding that slipped through.
  • Syntax errors within the function: Using the wrong type of quotation mark, typos, etc., can all cause functions to fail.
  • Malformed URLs: When using a function to build part of a URL you may append too little or too much to it. Some SharePoint URLs may not require you to include 'SitePages' for example, and doing so results in a URL that looks like this: `sharepoint.com/SitePages/SitePages/resource.aspx`.

More SharePoint and CRM Free Content Awaits!


If you found this guide helpful, please consider sharing it with a colleague. And, if you're ever stuck with your CRM or Power Automate, I'm only a DM away on LinkedIn. For my fellow productivity enthusiasts, I've put together a quick guide on when to use the two different Power Automate platforms. Check out our guide on Power Automate Web vs Power Automate Desktop to see which tool is best for you and the problems you tackle daily.


Glossary

ASPX
File extension for pages written in the .NET programming language. It stands for Active Server Pages.
Function
Similar to a formula in Excel, it is used to extend the functionality of Power Automate.
GUID (Globally Unique Identifier)
A unique 32-character alphanumeric string used by SharePoint to identify a specific list or library (such as the Site Pages library) when its standard name is inaccessible to Power Automate.
RPA (Robotic Process Automation)
Technology used to automate repetitive digital tasks by mimicking the actions of a human user (e.g., clicking buttons, extracting data from screens, logging into applications).
Trigger
The initiating event that starts a Power Automate flow. In this case, it is "When an item or a file is modified."
Site Address
The URL of the SharePoint site that houses the document library or list you are working with (either as the source or the destination).
List or Library Name
The specific container within a SharePoint site used to organize data or documents.


Matt Irving is the CEO of Super Easy Tech, LLC.
 
Matt a CRM Solutions Architect and creator of SuperEasyCRM.com. He specializes in CRM migrations, automation, and business systems integration, helping organizations implement scalable and cost-effective CRM solutions across North America.

Posted by: Matt Irving on 12/11/2025