Nick Grattan’s SharePoint Blog

About Microsoft SharePoint and some .NET

Finding the Id (Guid) for a SharePoint List

with 28 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.

Update: These techniques work for SharePoint 2010 Standard/Enterprise editions as well. Using Ken’s tip does not work for SharePoint 2010 Foundation as these list settings options are not available so you’ll need to use my first suggestion in this case.

Update: And it works for SharePoint 2013 too!

Written by Nick Grattan

April 29, 2008 at 11:10 am

28 Responses

Subscribe to comments with RSS.

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

    • Excellent!! thanks you very much

      Bazaleel

      December 8, 2011 at 11:18 am

  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

  9. You can also use this site http://www.albionresearch.com/misc/urlencode.php to encode the GUID

    Gene Vangampelaere

    December 17, 2009 at 8:33 am

  10. Thanks Nick!

    janice lagundi

    March 9, 2010 at 12:34 am

  11. [...] a couple of items to the list using the SharePoint UI.  Using the technique described in Finding the Id (Guid) for a SharePoint List, I obtained the GUID of SharePoint list which is used to construct  the connection string. The [...]

  12. …but how best to get a site by guid, that’s the question

    Woody

    August 4, 2010 at 12:36 pm

  13. For Lists: Setup an Excel file to do it, I paste the URL for the Lists in Column A and the following formula in Column B:

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(REPLACE(A1,1,FIND(“=”,A1),”"),”%7B”,”{“),”%7D”,”}”),”%2D”,”-”)

    DJ

    August 13, 2010 at 2:01 pm

    • how do you find the guid for the userlist?

      Stefanie

      September 20, 2010 at 6:19 pm

  14. This post just shaved off a few hours of work for me. Its a great tip everyone working with MOSS should be aware of.

    Thank you for sharing it!

    MichaelL

    November 5, 2010 at 5:11 pm

  15. [...] targeting settings” in your SharePoint library/list settings, follow the steps in this blog to decode the [...]

  16. I’ve written a small C# application to “find” a List by it’s GUID. Maybe also interesting ;)

    http://nexpose.ch/web/tech/2011/02/18/sharepoint-subsite-diagram/

    cansik

    March 28, 2011 at 12:20 pm

  17. with SP2010 it’s possible to copy the address link from the option “Add new item”. It contains also the GUID for the list.

    To find the option “Add new item” you have to browse to the list site.

    I don’t know, if this behaviour is the same in SP2007?

    ntr

    May 10, 2011 at 2:31 pm

    • Thanks for the tip!

      Navigating to “New Item” in SharePoint 2007 has the list name and not the ID in the URL. Regards, Nick.

      Nick Grattan

      May 11, 2011 at 5:20 am

  18. Yet another way is to change Brett’s example URL

    from

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

    to

    javascript:alert(unescape(‘%7B26534EF9%2DAB3A%2D46E0%2DAE56%2DEFF168BE562F%7D’))

    It’ll display a dialog box that you can copy the value from.
    (mind the single quotes)

    Andy

    Andrew

    June 8, 2011 at 8:37 pm

  19. [...] Step 1 : Find the sharepoint library GUID You can use the below blog to get the GUID http://nickgrattan.wordpress.com/2008/04/29/finding-the-id-guid-for-a-sharepoint-list/ [...]

  20. Thank you so much. works great

    MtnJim

    November 25, 2012 at 4:36 pm

  21. Another way to get List ID is through SharePoint Designer under List Information section

    Anh

    February 22, 2013 at 9:31 pm

  22. Also: I couldn’t find any of the menu options (perhaps I’m not priviledged enough), but the RSS feed button at the bottom of my page had the listid in the clear…

    Jeremy

    March 7, 2013 at 4:06 pm

  23. Anybody know how to find the GUID of an Item in an Announcement List? Audit logs show the Item ID (GUID) which is meaningless unless you know which article is relates to. Help!

    flo

    April 30, 2013 at 2:56 pm

  24. Go to List Setting and Modify List Audience Targeting Settings
    then you can view List Id on address
    like this : ******/_layouts/ListEnableTargeting.aspx?List={b9d8d92f-c9a4-49a4-86e0-5ace01f2fa0e}

    Khasragh

    June 3, 2013 at 1:44 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 38 other followers

%d bloggers like this: