Forum Discussion
Deleted
Sep 17, 2020Best 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)
- Connect to your source tenant site: Connect-PnPOnline -Url https://source.sharepoint.com -Credentials (Get-Credential)
- Extract the list as a template: Get-PnPProvisioningTemplate -Out template.xml -ListsToExtract "Title of List"
- Connect to your target tenant site: Connect-PnPOnline -Url https://target.sharepoint.com -Credentials (Get-Credential)
- Apply the extracted template: Apply-PnPProvisioningTemplate -Path template.xml
- Maggan WåhlinIron Contributor
Deleted
Use SharePoint PnP PowerShell (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp)
- Connect to your source tenant site: Connect-PnPOnline -Url https://source.sharepoint.com -Credentials (Get-Credential)
- Extract the list as a template: Get-PnPProvisioningTemplate -Out template.xml -ListsToExtract "Title of List"
- Connect to your target tenant site: Connect-PnPOnline -Url https://target.sharepoint.com -Credentials (Get-Credential)
- Apply the extracted template: Apply-PnPProvisioningTemplate -Path template.xml
- 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!
- Maggan WåhlinIron ContributorSorry, 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.