Get a List's Guid

The two easiest ways to retrieve a List's globally unique identifier in SharePoint 2007 are:

SharePoint Designer 2007

  1. Open the SharePoint site being examined.
  2. Click Data View -> Manage Data Sources ...
  3. Highlight the List and click hover drop-down -> Show Data -> Click on the list name... hyperlink at the top of the Data View.
  4. Note the ID shown in this window.

VBScript

  1. Use the following code snippet:
    ' Get the root element object
    Set SOAPClient = createobject("MSSOAP.SOAPClient")
    SOAPClient.mssoapinit "http://sharepoint/site/_vti_bin/Lists.asmx?WSDL"
    Set xmlDoc = SOAPClient.GetListCollection()
    
    DisplayNode xmlDoc
    

    in conjunction with the DisplayNode XML print function.

Comments

invalid syntax error

Hi I used this code , but i m getting the following error:
WSDL Reader error: XML Parser failed: reason: invalid syntax...
Could you please tell me what might have caused this problem...