Sharepoint lists and GUID

If you work with Sharepoint (in these days I'm working a lot with the workflow functionalities) one of the things that sometimes you've to do is to retrieve the GUID associated to a Sharepoint list. This is not so immediate and intuitive, but there are tricks that I want to share here.

The first way (thanks to Nick Grattan) is 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}

The second way is a more quick way that doesn't require URL decoding:

Just go to the List or Library settings as described above, then right-click on the “Audience targeting settings” or “Information management policy settings” links, choose Copy Shortcut and then paste the URL. These links aren’t URL encoded and you've immediate access to the list GUID.

Technorati Tag:

Print | posted on Thursday, May 01, 2008 2:00 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 8 and 2 and type the answer here: