Skip to content

Optimized Get-PnPFolderItem, Get-PnPFileInFolder and Get-PnPFolderInFolder to support document libries with over 5,000 items#4611

Merged
erwinvanhunen merged 4 commits intopnp:devfrom
KoenZomers:GetPnPFolderItemLargeList
Dec 4, 2024
Merged

Optimized Get-PnPFolderItem, Get-PnPFileInFolder and Get-PnPFolderInFolder to support document libries with over 5,000 items#4611
erwinvanhunen merged 4 commits intopnp:devfrom
KoenZomers:GetPnPFolderItemLargeList

Conversation

@KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Optimized Get-PnPFolderItem, Get-PnPFileInFolder and Get-PnPFolderInFolder to support document libries with over 5,000 items. This can be done by passing in the document library through the -List parameter. It will then use paging to retrieve all the items in the document library and cast them back to File or Folder objects.

@KoenZomers
Copy link
Collaborator Author

KoenZomers commented Dec 3, 2024

Accidentily merged in some minor changes to the AppMgmt cmdlets. They should be fine to process as well.

@erwinvanhunen erwinvanhunen merged commit 3e92ad3 into pnp:dev Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants