21 August 2010

How to find the GUID of a SharePoint List

Ever wondered how to find out the GUID of a SharePoint List? The GUID is a globally unique identifier which can be used to reference a particular list for use in coding or other means.

It is quite simple to find this out. The steps are outlined below:
  1. First of all, navigate to your SharePoint List that you need the GUID for.
  2. Click on the Settings drop-down menu, and then select List Settings.
  3. Look at the URL in the address bar of your browser, and copy everything after the = sign. This is the GUID, but the format is wrong.
  4. To format the GUID correctly, substitute the following characters:

    %7B  becomes  {
    %2D  becomes  -
    %7D  becomes  }

    So, for example, %7BC7EDB1A7%2D6F4A%2D4A44%2D8D4E%2D68C1179627DB%7D
    becomes {C7EDB1A7-6F4A-4A44-8D4E-68C1179627DB}
That's it!

SharePoint 2013 Update

In SharePoint 2013 there is a much easier way:
  1. Navigate to your SharePoint List.
  2. Click on List Settings.
  3. Click on Audience targeting settings.
  4. The URL ends with  List={C7EDB1A7-6F4A-4A44-8D4E-68C1179627DB} which already has your required GUID within the curly brackets.

    No comments:

    Post a Comment