Nick Grattan’s SharePoint Blog

About Microsoft SharePoint and some .NET

Finding the Id (Guid) for a SharePoint List

with 8 comments

There are times when you need to find the Id (a Guid) of a list – for example, when setting the Task list to be used with SharePoint Designer Workflows (see my blog post here). Here’s a simple way of doing this:

  • Navigate to the SharePoint list using the browser.
  • Select the Settings + List Settings menu command.
  • Copy the Url from the browser address bar into Notepad. It will look something like:

http://moss2007/ProjectX/_layouts/listedit.aspx?List=%7B26534EF9%2DAB3A%2D46E0%2DAE56%2DEFF168BE562F%7D

  • Delete everying before and including “List=”.
  • Change “%7B” to “{” 
  • Change all “%2D” to “-“
  • Chnage “%7D” to “}”

You are now left with the Id:

{26534EF9-AB3A-46E0-AE56-EFF168BE562F}

Update: See Ken’s Comment for a simpler solution (thanks!):

A (slightly) easier way if you have MOSS 2007 is to go to the List or Library settings as described above, then right-click on the “Audience targeting settings” or “Information management policy settings” links and choose Copy Shortcut.

You can then paste the URL and there’s no need to decode the GUID. For some reason these links aren’t URL encoded.

Written by Nick Grattan

April 29, 2008 at 11:10 am

8 Responses

Subscribe to comments with RSS.

  1. [...] About « Finding the Id (Guid) for a SharePoint List [...]

  2. Good tip!

    A (slightly) easier way if you have MOSS 2007 is to go to the List or Library settings as described above, then right-click on the “Audience targeting settings” or “Information management policy settings” links and choose Copy Shortcut.

    You can then paste the URL and there’s no need to decode the GUID. For some reason these links aren’t URL encoded.

    Ken Pespisa

    April 29, 2008 at 4:33 pm

  3. Ken, thanks! That’s easier! Nick.

    nickgrattan

    April 29, 2008 at 4:50 pm

  4. [...] Finding the Id (Guid) for a SharePoint List [...]

  5. Thanks for the info. That is good.

    raja

    August 1, 2008 at 11:26 am

  6. hi can u tell me how to get a GUID of a site collection??

    vinod

    July 3, 2009 at 12:13 pm

  7. an easier method may be to open up the site settings and go to “site lists and libraries” …. it will list the GUID like so: “/_layouts/ListEdit.aspx?List={C51B49FA-4F6C-407A-B65D-943CBB1E9BD2}”…. the main benefit being you don’t need to convert the hex character codes into { – }

    tyler

    August 7, 2009 at 1:18 am

  8. er… to clarify, lists & libraries will show a list of links of which you can copy to avoid the unescaping

    tyler

    August 7, 2009 at 1:19 am


Leave a Reply