In order to change url of Sharepoint Online list or document library you may use the following PnP.PowerShell script:
Connect-PnPOnline -Url https://{tenant}.sharepoint.com/sites/foo
$list = Get-PnPList MyList
$list.RootFolder.MoveTo("MyListNewUrl")
$ctx = Get-PnPContext
$ctx.ExecuteQuery()
In this example we change list url to MyListNewUrl.
No comments:
Post a Comment