Migrate SharePoint List to Another Site: Top 5 Ways
Are you looking for a reliable solution to migrate SharePoint list to another site? Although moving items from one SharePoint list to another can be a complex task, but with careful planning and the right approach, it can be a smooth and efficient process.
Whether you're consolidating multiple sites, improving performance, or adapting to organizational changes, understanding the different migration methods and best practices is crucial. In this comprehensive guide, we'll explore the various techniques for migrating SharePoint lists, from manual methods to powerful professional tool.
We'll also discuss key considerations, potential challenges, and tips for a successful migration.
Why Migrate SharePoint List to Another Site?
There are several reasons why you might want to move items from one SharePoint list to another.
Major Considerations to Move Items from One SharePoint List to Another
Before you dive into the migration process, it's important to consider a few key factors:
By carefully considering these factors, you can plan a successful SharePoint list migration. In the next section, we'll explore the methods you can use to migrate your lists.
Approach 1. Copy SharePoint List to Another Site
One of the simplest methods to migrate a SharePoint list is to manually copy it to the destination site. Here's how:
However, there are some limitations to this approach:
Approach 2. Exporting and Importing a List
Another manual method involves exporting the list to Excel and then importing it into the destination site. Here's a step-by-step guide to migrate SharePoint list to another site:
Important Considerations:
While manual methods can be a viable option for simple migrations, they may not be suitable for larger or more complex lists. In the next section, we'll explore the use of SharePoint list templates for a more efficient migration process.
Approach 3. Using SharePoint List Templates
SharePoint list templates offer a convenient way to move items from one SharePoint list to another while preserving their structure and settings. Here's how to utilize them:
Limitations
In the next section, we'll delve into the powerful world of third-party tools that can significantly streamline your SharePoint list migration process.
Approach 4. Migrate SharePoint List to Another Site Using PowerShell Commands
Install-Module -Name PnP.PowerShell
Connect-PnPOnline -Url https://[entertenantname].sharepoint.com/sites/[source site] -Interactive
Get-PnPSiteTemplate -Out C:\Temp\Lists.xml -ListsToExtract “List Y”, “List Z” -Handlers Lists
Add-PnPDataRowsToSiteTemplate -Path C:\Temp\Lists.xml -List “List Y” Add-PnPDataRowsToSiteTemplate -Path C:\Temp\Lists.xml -List “List Z”
Connect-PnPOnline -Url https://[entertenantname].sharepoint.com/sites/[destination SharePoint site] -Interactive
Invoke-PnPSiteTemplate -Path “C:\Temp\Lists.xml” If the SharePoint list contains some attachments, then execute the below PowerShell script.
Function Copy-SharePointListAttachments() { param ( [Parameter(Mandatory=$true)] [Microsoft.SharePoint.Client.ListItem] $SourceItem, [Parameter(Mandatory=$true)] [Microsoft.SharePoint.Client.ListItem] $DestinationItem ) Try {
$AllAttachmentsofList = Get-PnPProperty -ClientObject $SourceItem -Property “AttachmentFiles” $AllAttachmentsofList | ForEach-Object {
$File = Get-PnPFile -Connection $Source_Cont -Url $_.ServerRelativeUrl -FileName $_.FileName -Path $Env:TEMP -AsFile -force
$FileStream = New-Object IO.FileStream(($Env:TEMP+”\”+$_.FileName),[System.IO.FileMode]::Open) $Attachment_Info = New-Object -TypeName Microsoft.SharePoint.Client.AttachmentCreationInformation $Attachment_Info.FileName = $_.FileName
$Attachment_Info.ContentStream = $FileStream $AttachedFile = $DestinationItem.AttachmentFiles.Add($Attachment_Info) Invoke-PnPQuery -Connection $DestinationConn
Remove-Item -Path $Env:TEMP\$($_.FileName) -Force }}
Catch { write-host -f Red “Error while Copying the Attachments:” $_.Exception.Message } }
Function Copy-MSPAllListItems() { param ( [Parameter(Mandatory=$true)] [Microsoft.SharePoint.Client.List] $SourceList, [Parameter(Mandatory=$true)] [Microsoft.SharePoint.Client.List] $DestinationList ) Try {
Write-Progress -Activity “Reading Source…” -Status “Getting Items from Source List. Please wait…” $SourceSharePointAllListItems = Get-PnPListItem -List $SourceList -PageSize 500 -Connection $Source_Cont SourceSharePointListItemsCounter= SourceSharePointListItems.count Write-host “Total Number of List Items Found are:”SourceSharePointListItemsCounter
$Source_ListFields = Get-PnPField -List $SourceList -Connection $Source_Cont | Where { (-Not ($_.ReadOnlyField)) -and (-Not ($_.Hidden)) -and ($_.InternalName -ne “ContentType”) -and ($_.InternalName -ne “Attachments”) }
[int]$Count = 1 ForEach($SourceItem in $SourceSharePointAllListItems) { $Items_Value = @{}
Foreach($SourceField in $Source_ListFields) {
If($SourceItem[$SourceField.InternalName] -ne $Null) {
$FieldsType = $SourceField.TypeAsString
If($FieldsType -eq “User” -or $FieldsType -eq “UserMulti”) { $PeoplePickerValues = $SourceItem[$SourceField.InternalName] | ForEach-Object { $_.Email} $Items_Value.add($SourceField.InternalName,$PeoplePickerValues) } ElseIf($FieldsType -eq “Lookup” -or $FieldsType -eq “LookupMulti”) # Lookup Field { $LookupIDs = $SourceItem[$SourceField.InternalName] | ForEach-Object { $_.LookupID.ToString()} $Items_Value.add($SourceField.InternalName,$LookupIDs) } ElseIf($FieldsType -eq “URL”) #Hyperlink { $URL = $SourceItem[$SourceField.InternalName].URL $Description = $SourceItem[$SourceField.InternalName].Description $Items_Value.add($SourceField.InternalName,”$URL, $Description”) } ElseIf($FieldsType -eq “TaxonomyFieldsType” -or $FieldsType -eq “TaxonomyFieldsTypeMulti”) { $TermGUIDs = $SourceItem[$SourceField.InternalName] | ForEach-Object { $_.TermGuid.ToString()} $Items_Value.add($SourceField.InternalName,$TermGUIDs) } Else {
$Items_Value.add($SourceField.InternalName,$SourceItem[$SourceField.InternalName]) }}}
领英推荐
$Items_Value.add(“Created”, $SourceItem[“Created”]); $Items_Value.add(“Modified”, $SourceItem[“Modified”]);
$Items_Value.add(“Author”, $SourceItem[“Author”].Email); $Items_Value.add(“Editor”, $SourceItem[“Editor”].Email);
Write-Progress -Activity “ List Items starts copying:” -Status “Copying Item ID ‘$($SourceItem.Id)’ from Source List ($($Count) of $($SrcListItemsCount))” -PercentComplete (($Count / $SrcListItemsCount) * 100)
$New_Item = Add-PnPListItem -List $DestinationList -Values $Items_Value
Copy-SharePointListAttachments -SourceItem $SourceItem -DestinationItem $New_Item
Write-Host “Copied Item ID from Source to Destination List:$($SourceItem.Id) ($($Count) of $($SrcListItemsCount))” $Count++ } } Catch { Write-host -f Red “Error:” $_.Exception.Message } }
$Source_SiteURL =? “[enter? here]” $Source_ListName = “[enter? here]”
$Destination_SiteURL =? “[enter? here]” $Destination_ListName =? “[enter? here]”
$Source_Cont = Connect-PnPOnline -Url $Source_SiteURL -Interactive -ReturnConnection $SourceList = Get-PnPList -Identity $Source_ListName -Connection $Source_Cont
$DestinationConn = Connect-PnPOnline -Url $Destination_SiteURL -Interactive -ReturnConnection $DestinationList = Get-PnPList -Identity $Destination_ListName -Connection $DestinationConn
Copy-MSPAllListItems -SourceList $SourceList -DestinationList $DestinationList
Don’t forget to Ensure
Approach 5. Leveraging SysTools SharePoint Migration Tool to Copy SharePoint List to Another Site
You can use the most reliable software to copy the SharePoint list items from one site to another. This is the recommended by the Microsoft experts after a lot of trials. It is not only able to migrate the SharePoint list but also the document library. It accomplish the migration process without losing a bit. There are several features of this tool such as:-
Steps of the Professional Tool to Migrate SharePoint List to Another Site
Step 1. Download, Install, and Execute the tool.
Step 2. Choose the Source & Destination platforms from the opened screen.
Step 3. Click the Sites option and filter them.
Step 4. Add Sites and Users into the tool for migration.
Step 5. Lastly, click on the Start Migration button to initiate the migration process.
Best Practices for SharePoint List Migration
To ensure a smooth and successful SharePoint list migration, follow these best practices:
Planning and Preparation
Post-Migration Verification
By following these best practices, you can migrate SharePoint list to another site with minimal risk of errors.?
In the next section, we'll discuss some common issues you may encounter during the migration process and how to troubleshoot them.
Troubleshooting Common Issues
While moving SharePoint list from one site to another site, you may encounter some common issues. Here are some tips for troubleshooting:
By being aware of these common issues and taking proactive steps to address them, you can minimize downtime and ensure a smooth SharePoint list migration experience.
Conclusion
Successfully moving the SharePoint list items to another site requires careful planning, execution, and attention to detail. By understanding the different migration methods, and following best practices, you can minimize risks, and optimize performance to migrate SharePoint list to another site.
Frequently Asked Questions
Q1. What are the risks of migrating a SharePoint list??
A - The risks of migrating a SharePoint list include data loss, corruption, and performance issues. To minimize these risks, it's important to plan the migration carefully, test the process, and use reliable tools.
Q3. How do I migrate a SharePoint list to a different domain??
A - Using the above-mentioned professional tool, you can transfer the SharePoint list to another domain.
Q3. Can I migrate a SharePoint list to Microsoft Teams??
A - While you can't directly migrate a SharePoint list to Microsoft Teams, you can create a new list in Teams and manually copy the data. However, this approach may not preserve all list settings and customizations.
Q4. How do I migrate a SharePoint list to OneDrive??
A - You can export a SharePoint list to Excel and then import it into a new Excel workbook in OneDrive. However, this method may not preserve all list features and functionality.
Q5. How do I migrate a SharePoint list to another site collection??
A - You can migrate SharePoint list to another site using any of the above-elaborated methods. But the professional method is way better than the other ones. So, you can move your SharePoint to another SharePoint site using the below steps quickly and efficiently.
Finally, click on the Start Migration button to initiate the process.