In this article you will learn about changing the URL of the list in SharePoint, Office 365.
Scenario In one of the our SharePoint online projects, my colleague created the list called “TestList” in which the URL of the list becomes “/Lists/TestList/AllItems.aspx.” Our customer had given us the excel sheet and we need to import the excel content in the list. Excel content was imported successfully and around 600 items were added into the list. Everything is OK now. Only thing is that the URL of the list is “TestList” and not the proper list. My colleague created it with the intention of testing. Now a simple approach to have a proper list URL is to create a new list with the proper URL. Import the excel again to the list and we are done. Here this is possible because we only need to create list and import excel but in some cases like where workflows are associated and executed or there were item level permissions then it becomes a tedious and time consuming task. Solution So we were wondering if rather than doing all the steps again is there any way where we can change the URL of the list directly so we don't need to create a new list and import excel again? First thought that came to mind is “List Settings;” we went to list settings but couldn't find any way to change the URL of the list. As shown below in the “General Settings” of the list, Figure 1 : List General Settings Only possible option is to change the List name, description and navigation but not the URL. The next thought that came was of PowerShell and it is possible to change the URL of the list with PowerShell command? We need to move the RootFolder of the list to new URL, following is the small PowerShell script to change the URL of the list in SharePoint online.
JavaScript Object Model (ECMA) Programming In SharePoint 2016 And Office 365