Get-PnPFolderItem can we get the related items in batches? #3258
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a SharePoint online site which contain a document library named "Customer Share" >> and inside this library we have a folder named "Clients" >> and inside the "Clients" folder we have around 10,000 sub-folders representing clients.
Now i am trying to get all the 10,000 sub-folders >> then for each sub-folder to see what is the maximum last modified date of its content.
Now first step i tried to get the 10,000 sub-folders in batches to avoid any threshold error:-
`
$mainfolderUrl = "Customer Share/Clients"
$customerFolders = Get-PnPFolderItem -FolderSiteRelativeUrl $mainfolderUrl -PageSize 3000 -ScriptBlock {}
`
but i got this error:-
Get-PnPFolderItem: A parameter cannot be found that matches parameter name 'PageSize'.
so can anyone advice how i can get the 10,000 sub-folders in batches?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions