Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $list = Get-MyCoolList
  2. $query = New-Object Microsoft.SharePoint.Client.CamlQuery
  3. $query.ViewXml = "<View><Query><Where>...</Where></Query><RowLimit>4999</RowLimit></View>";
  4. do {
  5. $items = $list.GetItems($query);
  6. $query.ListItemCollectionPosition = $items.ListItemCollectionPosition;
  7.  
  8. # ... do cool stuff...
  9.  
  10. } while ($query.ListItemCollectionPosition -ne $null)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement