Migrating same folder structure to SharePoint Online

Dee Akil 61 Reputation points
2022-08-16T13:13:08.623+00:00

Hello,

I'm using Microsoft SharePoint Migration Tool to migrate fileserver's folder structure to SharePoint Online. I'm doing bulk upload following Microsoft's instructions. https://learn.microsoft.com/en-us/sharepointmigration/how-to-format-your-csv-file-for-data-content-migration

However, I can get the specific folders from the source, but I cannot point them to the specific subfolders. Is there anyway to do it?

Thank you

Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-08-19T09:29:07.553+00:00

    Hi @Dee Akil ,

    Per my test,migrations can currently only go to the first subfolder level of the library. Maybe you can use the Move to function or drag and drop directly as a workaround, which is relatively convenient in SharePoint Online. Or you could quickly migrate folders by using PowerShell code.
    1.Move to
    232780-microsoftteams-image-1.png

    2.drag and drop
    232843-image.png

    3.PnP PowerShell to Move a Folder in SharePoint Online:

    #Config Variables  
    $SiteURL = "https://Crescent.sharepoint.com/sites/marketing"  
    $SourceFolderURL= "Shared Documents/11/Active"  
    $TargetFolderURL = "Shared Documents/11/22/33"  
    
    #Connect to PnP Online  
    Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)  
    
    #sharepoint online powershell move folder  
    Move-PnPFolder -Folder $SourceFolderURL -TargetFolder $TargetFolderURL  
    

    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 additional answers

Sort by: Most helpful

Your answer

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