copy sharepoint modern page

help 21 Reputation points
2022-08-30T08:50:14.243+00:00

How can i copy a modern sharepoint page into a classic sharepoint site ?

Microsoft 365 and Office | SharePoint Server | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,256 Reputation points
    2022-08-31T05:37:58.25+00:00

    Hi @help ,

    According to my research and testing ,you can use PowerShell script to download the modern page to your local machine, and then upload it to classic SharePoint site. Please follow these steps:

    1.Download the modern page;

    Connect-PnPOnline -Url https://xxxx.sharepoint.com/sites/zellatest  
    Get-PnPFile -Url '/sites/zellatest/SitePages/xxxx.aspx'  -Path 'C:\'  -Filename 'xxxx.aspx' -AsFile  
    

    2.Upload to classic SharePoint site:

    Connect-PnPOnline -Url https://xxxx.sharepoint.com/sites/zellaclassic  
    Add-PnPFile  -Path 'C:\xxxx.aspx'  -Folder "SitePages"  
    

    Update

    As a workaround, you can create a Power Automate, please follow these steps:

    1.Click Automate ->> Power Automate ->> See your flow
    236854-image.png
    2.Click Create ->> Automated cloud flow ->> Input "Name" ->> "When an item is created" ->> Create
    236855-01.png
    3. Input contents and click "save"
    236806-02.png
    4.Create an item in the library (In my test, I create an item in the "aaaa" library). Then, click Test ->>Manually .
    236798-03.png
    236873-04.png
    5.Wait a minute and go to the classic site to check if the copy was successful.
    6.You can delete the new item you just created.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.