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. 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:
- Delete everying before and including "List=".
- Change "%7B" to "{"
- Change all "%2D" to "-"
- Chnage "%7D" to "}"
{26534EF9-AB3A-46E0-AE56-EFF168BE562F}
OR
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.