How to get the list GUID in SHarePoint

sns 9,246 Reputation points
2023-02-21T04:49:43.2466667+00:00

How to get the list GUID in SHarePoint ,

I tried many ways and using powershell command also, but not sure which one is correct method to get the List GUID, Please suggest.

It is sharepoint 2016

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 24,951 Reputation points Moderator
    2023-02-21T06:19:52.0266667+00:00

    Hi @sns ,

    Go to list settings >> See the URL and the list GUID is after "List=".

    SharePoint GUID Conversion Encoding. just replace:

    • %7B with  {
    • %2D with  –
    • %7D with  }

    For example, from the below screenshot, we get the value "%7B788041CE%2D5DB5%2D43BF%2D84E1%2D4417550E227C%7D" after "List=". Use the above decoding technique we get the GUID:

    780841CE-5DB5-43BF-84E1-4417550E227C.

    User's image

    Or we can use below PowerShell:

     
    #how to get list guid in sharepoint 2016 using powershell 
    $Web = Get-SPWeb "http://xxx/sites/xxx" 
    #Get the List 
    $List = $web.Lists["listname"] 
    Write-Host "List GUID:" $List.id
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.