Finding List Name Using List ID in SharePoint

Sometimes you just have the ID of the list. For example, if you have code that calls an API and the software developer who wrote that code directly used the ID of the list. In this case, it may take some time to find out which list on your site has this ID.

If you only have the ID of the list and you are wondering which SharePoint list this ID corresponds to, a PowerShell Snippet like the one below can work.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$spWeb = Get-SPWeb "https://yoursiteurl/"
$spListGUID = [GUID]"{123b6f2f-61b4-40ee-a064-3fa2f78487e8}"
$spList = $spWeb.Lists[$spListGUID]
Write-Host "List Title: " $spList.Title

Add a Comment

Your email address will not be published. Required fields are marked *