Wednesday, December 16, 2009

SharePoint List GUIDs, How to Find?



In this post I’m going to discuss about an easiest way to find GUID of a SharePoint list and a View. If you are using the MOSS 2007 there is straight forward way to get the List GUID, these are the steps.

1. Access the list via your browser.

2. Go to Settings --> List Settings and right-click on the "Information management policy settings" links and choose Copy Shortcut.

3. Paste the URL and you can see the GUID surrounded with "{" and "}".

If you are using WSS 3.0 follow these steps, you can use this method to find the View GUID in MOSS 2007

1. Access the list via your browser and select the View you want to find the GUID.

2. Select "Modify this View" and copy the URL.

3 You will get a URL like this,

http://mysite:5050/testsara/_layouts/ViewEdit.aspx?List=%7B5C65CB1A%2D2E1B%2D488A%2DAC07%2DB115CD0FC647%7D&View=%7B75E689B4%2D5773%2D43CB%2D8324%2D58E42E1EB885%7D&Source=http%253A%252F%252Fmysite%253A5050%252Ftestsara%252FLists%252FTasks%252FAllItems%252Easpx

There you can find,

List=%7B5C65CB1A%2D2E1B%2D488A%2DAC07%2DB115CD0FC647%7D
View=%7B75E689B4%2D5773%2D43CB%2D8324%2D58E42E1EB885%7D

Replace "%7B" with "{"
Replace all "%2D" with "-"
Replace "%7D" with "}"

You are now left with the GUIDs, in the above example;

List ID is {5C65CB1A-2E1B-488A-AC07-B115CD0FC647}
View ID is {75E689B4-5773-43CB-8324-58E42E1EB885}

You can use SharePoint Tips Utility Pack if you need to get the GUID of List columns. There in menu bar, select "List Management --> Change Field Settings" and load your site.

Related Posts:

  • SharePoint Web Part Development Tutorial It is hard to find out simple way to create SharePoint web parts with visual designing. After looking at custom features, in this article I'm going t… Read More
  • SharePoint List C# Part 2 In my previous post SharePoint List C# Part 1, I wrote how to retrieve data from SharePoint list. In this post also I'm going to show you how to retr… Read More
  • Deleting Features from SharePoint In one of my previous article I discussed about creating and deploying custom features to SharePoint server. Here I’m going to describe how you can r… Read More
  • SharePoint List C# Part 1 Here I'm going to show you how you can use the SharePoint object model to read sharepoint list using C#. To do this in your custom webpart or feat… Read More
  • SharePoint User GroupsCheck User Group in SharePoint To store and manage permissions we can create User Groups in SharePoint. In this article I’ll discuss how you can che… Read More

2 comments: