locked
Invoke-RestMethod only gives 100 rows back RRS feed

  • Question

  • $header = @{
        "Accept"          = "application/json"
        "connectapitoken" = "97fe6ab5b1a640909551e36a071ce9ed"
        "Content-Type"    = "application/json"
        "Authorization"   = "52d8cbf2-cb98-4171-850e-84f5e50cae46"
    }

    $A = Invoke-RestMethod  -Uri $url -Method GET -Headers $header
    $A 

    -------------------------

    $A._PageInfo

    @{numberOnPage=100; total=123}

    There is only 100 items in the $A.responselist, how do i get the last 23?

    Must be something about raising the numberOnPage og paging, but i don't know how to do either

    Torben

    • Edited by Torben Hansen - SIT Wednesday, March 6, 2019 10:45 AM
    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:19 PM Unanswerable drive-by question
    Wednesday, March 6, 2019 9:56 AM

All replies