Friday, March 2, 2012

How to Change URL of the SharePoint List or Library?

Another interesting question, How to change the URL of the existing List or Library in SharePoint? End-user named a document library as "2011 Goals & Results" and in URL it came as "2011%20Goals%20%20Results", Now they made a request to special characters in the URL.

change sharepoint list url
Unfortunately, there is no direct way/interface from SharePoint to do that. However these tricks will help you! thought of Sharing..
  1. Use Explorer View
  2. Use SharePoint Designer
  3. Using PowerShell to Change the URL of a SharePoint List or Library
Using Explorer View to rename SharePoint list URL:
Open the site in Explorer view, Rename the List/Library as you rename in your local windows machine's explorer view! This renames list web address also.
change sharepoint list url 2007/2010


Using SharePoint Designer to Rename list url:

Open the site with SharePoint Designer, All Files, Right click the Library, and choose "Rename"
 sharepoint designer rename list url

Nice trick, Isn't it? :-)
sharepoint designer 2010 change list url

PowerShell script to rename SharePoint List URL :
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Web URL where the target list lives
$WebURL = "http://sharepoint.crescent.com/"
#List Name
$ListName = "ExternalProjects"

#Get the Web List and Library objects
$web = Get-SPWeb $WebURL
$List = $web.Lists[$ListName]    

#Change the URL from "ExternalProjects" to "Projects"
$List.RootFolder.MoveTo("Projects")



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

4 comments :

  1. COOL.. the explorer view is superb.. Thanks a lot dude.

    ReplyDelete
  2. Only place I found this information, thanks!

    ReplyDelete
  3. Used the SharePoint Designer and it updated all other links to that list (thus no broken links). Excellent tip! Thank you!

    ReplyDelete
    Replies
    1. You forgot to call $List.Update() after the last line in the powershell-solution. The change will not be processed completely without "$List.Update()", and the url to the list will fail (pointing to old/wrong url while listname is internally changed).

      Delete

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...