Commit c01b5571 authored by Jos Lieben's avatar Jos Lieben

add paging to avoid 5000 list item view limit in sharepoint online

parent c924e783
......@@ -71,7 +71,7 @@ foreach($site in $sites){
$lists = Get-PnPList -Includes BaseTemplate,EntityTypeName
$lists | where {$_.BaseTemplate -eq 101} | % {
Write-Output "Detected document library $($_.Title) with Id $($_.Id) and Url $($_.SiteUrl), processing..."
$items = Get-PnPListItem -List $_
$items = Get-PnPListItem -List $_ -PageSize 2000
foreach($item in $items){
if($item.FileSystemObjectType -eq "Folder"){
continue #Mapjes skippen we!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment