-
Notifications
You must be signed in to change notification settings - Fork 399
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Issue description
- The Get-PnPRecycleBinItem documentation specifically states that if
Get-PnPRecycleBinItemis called without passing either-FirstStageor-SecondStage, the cmdlet will return "All" items in the recycle bin. - This is not correct however, in fact the
-FirstStageis implied even when not passed explicitly and the only way to get a list of all items in the recycle bin is to run the cmdlet twice (once with-FirstStageand again with-SecondStage) and then merge the result sets together. - In essence,
Get-PnPRecycleBinItem -FirstStageandGet-PnPRecycleBinItemare identical.
Scenario:
- There are 3,000 items in the recycle bin overall
- There are 1,000 items in the first stage recycle bin
- There are 2,000 items in the second stage recycle bin
Expected behavior
- Running
Get-PnPRecycleBinItem -FirstStagereturns the 1,000 items in the first stage recycle bin - Running
Get-PnPRecycleBinItem -SecondStagereturns the 2,000 items in the second stage recycle bin - Running
Get-PnPRecycleBinItemreturns all 3,000 items in the recycle bin, across both the first and second stages
Actual behavior
- Running
Get-PnPRecycleBinItem -FirstStagereturns the 1,000 items in the first stage recycle bin - Running
Get-PnPRecycleBinItem -SecondStagereturns the 2,000 items in the second stage recycle bin - Running
Get-PnPRecycleBinItemalso returns the 1,000 items in the first stage recycle bin (only) and does return any items that are in the second stage recycle bin
Steps to reproduce behaviour
- Replicate the above scenario and tests
What is the version of the Cmdlet module you are running?
- 3.1.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working