Get SharePoint list URL by list ID

No comments

Sometimes due to some reason when SharePoint developer is shared only with SharePoint site url and list id – using this two combination, they need to generate the default view URL.  Then how can we construct the list URL? I will show here in this post how we can get SharePoint list URL by list ID in steps.

Step 1:

I know my site url and list ID as below:

Site URL : https://globalsharepoint.sharepoint.com/sites/TestSite

ListID=”356640B5-9F55-4468-8AA9-A8C34ED29490″

Construct the URL to get the “list title” from list edit page like below:

“Site URL”+”/_layouts/15/listedit.aspx?List=”+ListID

https://globalsharepoint.sharepoint.com/sites/TestSite/_layouts/15/listedit.aspx?List=%7B356640B5%2D9F55%2D4468%2D8AA9%2DA8C34ED29490%7D

SharePoint List URL1

Step 2:

From the above step 1 got the list title as “Test List” as an example.

Now lets generate the default list view URL as like below:

Syntax:  “Site URL”+”/Lists/”+ListTitle (we got it from the above step 1)

Example:

https://globalsharepoint.sharepoint.com/sites/TestSite/Lists/Test List

Now lets access this URL – we will land into the default list view page like below:

SharePoint List URL2

Using PowerShell command Get SharePoint List Title by ID:

Apparently, using the simple below PowerShell command also we can get the List Title by List ID and construct the URL accordingly:

Get-SPSite "http://SharePointserver/sites/TestSite/" | Get-SPWeb -Limit ALL | %{$_.Lists} |?{$_.ID eq "356640B5-9F55-4468-8AA9-A8C34ED29490"} |ft Title, ParentWebURL, RootFolder