Forum Discussion

Deleted's avatar
Deleted
Sep 17, 2020
Solved

Best Method to Port a SP List to a New M365 Tenant?

What is the best method to port a SP list from one tenant to another?  Some of my lists are used as data sources for Power Apps so I need a quick method for porting these lists from one tenant to another. 

  • Deleted 

     

    Use SharePoint PnP PowerShell (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp)

    1. Connect to your source tenant site: Connect-PnPOnline -Url https://source.sharepoint.com -Credentials (Get-Credential)
    2. Extract the list as a template: Get-PnPProvisioningTemplate -Out template.xml -ListsToExtract "Title of List"
    3. Connect to your target tenant site: Connect-PnPOnline -Url https://target.sharepoint.com -Credentials (Get-Credential)
    4. Apply the extracted template: Apply-PnPProvisioningTemplate -Path template.xml
    • Deleted's avatar
      Deleted

      Maggan Wåhlin Thank you for your quick response.  Unfortunately, I able to access site in PS but I get the following error: "Access denied. You do not have permission to perform this action or access this resource."  Looks like I will require someone with admin privileges. Thanks for the code, though! 

Resources