-
Notifications
You must be signed in to change notification settings - Fork 388
Description
Reporting an Issue or Missing Feature
It is no longer possible to use a site-relative list URL as the -Identity value of Get-PnPList as of version 2.1.1 (haven't checked 2.1.0). The documentation states the site-relative URL of a list should be supported as a value and it used to work with version 1.12.0. Using the list name as -Identity works as expected.
Expected behavior
Executing Get-PnPList -Identity "Lists/MyList"
returns the list, if it exists.
Actual behavior
Executing Get-PnPList -Identity "Lists/MyList"
returns the error message "Get-PnPList: List 'https://tenant.sharepoint.com/sites/sitecoll/Lists/MyList' does not exist at site with URL 'https://tenant.sharepoint.com/sites/sitecoll'.".
Executing Get-PnPList -Identity "My List"
works as expected for the same list.
Steps to reproduce behavior
When connected to a site:
Get-PnPList -Identity "Lists/MyList"
(MyList must exist)
What is the version of the Cmdlet module you are running?
2.1.1 (was working with 1.12.0), PowerShell 7.3.3 win-x64
Which operating system/environment are you running PnP PowerShell on?
- [x ] Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify