title: powershell limit on Invoke-RestMethod?
body: <p>I have this bit of the code:</p>
  
  <pre><code>$url = "https://outlook.office365.com/api/v1.0/me/messages" 
  $date = Get-Date -Format "yyyy-MM-dd"
  
  $messageQuery = "" + $url + "?`$select=Id&amp;`$filter=HasAttachments eq true and DateTimeReceived ge " + $date
  $messages = Invoke-RestMethod $messageQuery -Credential $cred 
  
  foreach ($message in $messages.value) 
  {
  </code></pre>
  
  <p>I try to download 11 attachments from 11 different emails… but I only get 10… is there a limit in the Invoke-RestMethod ? is the only reason I can find, because it works perfect up to 10 attachments…</p>