Wednesday, February 15, 2012

Get the List Settings Page of any List

Problem:
There was a List in a site collection without any tool bars (They were removed purposefully). Had to change some columns in the list. Since the toolbar is disabled, could not get into : List settings from SharePoint Interface.

Solution:
For user created lists, the simplest way is, navigate to: Site actions >> Site Settings >> click on Site libraries and lists under "Site Administration". That will lead to a page from where we can pick a list to get its settings page.

How about SharePoint Server's lists/hidden lists? e.g. User Information List? Lets dig little more. Take a look at a typical list settings URL: http://sharepoint.com/_layouts/listedit.aspx?List={List-GUID} .Why don't we try the same with our List? We know the List Name and its location. But how to get the GUID of the list?

Well, There are many ways: Object Model, PowerShell, or Database Query.

Here, I'm using PowerShell: Say our List name is: "User Information List"

#Set-ExecutionPolicy RemoteSigned
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$site = New-Object Microsoft.SharePoint.SPSite("http://sharepoint.com")
$web = $site.OpenWeb()
$list=$web.lists["User Information List"]
write-host $list.id

SQL query way:
SELECT tp_ID FROM Lists WITH(NoLock) WHERE tp_Title ='User Information List'


So, we got the GUID of  List, lets hit the URL in browser. In my case it was:
http://sharepoint.com/_layouts/listedit.aspx?List={e8dc6de8-3f1c-4cac-9eb6-02ee80effe13} , Well done, Now I'm in List settings page!.

Tail: 
You can use the same technique for other list features like "Alert Me!". 
E.g. Typical Alert Me URL would be: . Just replace the {List GUID} with the GUID queried above, You can create alert for user information list!



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:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...