-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Hello,
It appears the issue #1598 is not fixed and this is a request to reopen it.
Running into the same issue as #1598 where the -RowLimit parameter appears to not work for Restore-PnPRecycleBinItem.

Even when running the command without the filtering it errors.

Reporting an Issue or Missing Feature
It is an Issue.
Expected behavior
For the cmdlet to work as intended.
Actual behavior
Getting "The attempted operation is prohibited because it exceeds the list view threshold" error when trying to restore something and the -RowLimit parameter does nothing to fix the error.
Steps to reproduce behavior
Connect-PnPOnline -Url https://example.sharepoint.com/sites/sharepointsite -UseWebLogin
Get-PnPRecycleBinItem -RowLimit 15000 | ? -Property DeletedByName -Like "Firstname Lastname" | Restore-PnPRecycleBinItem -Force -RowLimit 15000
OR
Connect-PnPOnline -Url https://example.sharepoint.com/sites/sharepointsite -UseWebLogin
Restore-PnpRecycleBinItem -Identity 22c4d077-2a3d-446e-bf30-e9ece79820a1 -Force -RowLimit 1
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
