Why can't I get to the URL????

Why can't I get to the URL????

I'm not a PowerShell expert, so I'm not sure why the Url property shows when you display the $list object. But as a developer I know that you get the URL for the list from the ServerRelativeUrl property of the root folder.

I hope this helps.
Hi @computerhabit-1849 ,
According to my research, if you want to get the relative path of the SharePoint list, you need to run this command: $List.RootFolder.ServerRelativeUrl
For example:
$Site = "https://domain.sharepoint.com/sites/sitename/"
Connect-PnPOnline -Url $Site -Credentials (Get-Credential)
$ListUrl = "Lists/listname/"
#Get the List
$List = Get-PnPList -Identity $ListUrl
$List
$List.Id
$List.Title
$List.RootFolder.ServerRelativeUrl

Thanks,
Echo Du
===============================================
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.
@EchoDu-MSFT Next time you can just copy and paste my answer. It will save you some time.
I just got tripped up by this again. I don't code this often.
I do not get why the people who develop this would post a URL but make you take a completely different path to get to it.
14 people are following this question.