How to get the list GUID in SHarePoint

sns 9,241 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

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,422 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 24,436 Reputation points Microsoft External Staff
    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.