SOLVED

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

Deleted
Not applicable

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. 

3 Replies
best response
Solution

@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

@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! 

Sorry, forgot to mention:

You first need to connect to the tenant:

Connect-SPOService -Url https://tenant-admin.sharepoint.com

You will need SharePoint Online Admin rights.
1 best response

Accepted Solutions
best response
Solution

@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

View solution in original post