Skip to content

[BUG] Restore-PnPRecycleBinItem parameter IdList missing #5257

@gaiking-uk

Description

@gaiking-uk

Issue description

According the pnp.github.io documentation, the cmdlet Restore-PnPRecycleBinItem supports a string array parameter: IdList however this does not seem to be the case. Updated to v3.1.0 but this parameter is still not recognised.

Expected behavior

  • When calling the Restore-PnPRecycleBinItem cmdlet, the parameter IdList should be recognised as valid.
  • Running the code provided in Example #4 should work (if the specific GUIDs are valid)...
> Restore-PnPRecycleBinItem -IdList @("31897b05-fd3b-4c49-9898-2e7f10e59cac","b16f0733-9b07-4ef3-a4b6-896edca4babd", "367ef9d2-6080-45ea-9a03-e8c9029f59dd")

Actual behavior

  • The Restore-PnPRecycleBinItem does not provide IdList as a parameter that can be passed in.
  • Running the code provided in Example #4 fails before executing, advising that IdList is an invalid parameter...
> Restore-PnPRecycleBinItem -IdList @("31897b05-fd3b-4c49-9898-2e7f10e59cac","b16f0733-9b07-4ef3-a4b6-896edca4babd", "367ef9d2-6080-45ea-9a03-e8c9029f59dd")
> [ERROR] Restore-PnPRecycleBinItem: A parameter cannot be found that matches parameter name 'IdList'

Steps to reproduce behaviour

  1. Use IntelliSense or Show-Command to get cmdlet parameters.
  2. Try to run Example #4 from the cmdlet help

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions