HTTP v4 module pagination doesn't seem to be working for GraphQL

:bullseye: What is your goal?

Have the request hit the pagination and consolidate into a single response.

:thinking: What is the problem & what have you tried?

I’ve created an HTTP module to hit the MS Graph endpoint to query a sharepoint list. This endpoint by default will return 200 records and a pagination URL. I need to get all ~800 records for the next step in my scenario which filters and searches the dataset for a value.

I’ve programmed the pagination that the URL is in @odata.nextLink and that the results of the response is in value. However I only ever get the first 200 back and nothing else.

:clipboard: Error messages or input/output bundles

Response:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites.................,
    "@odata.nextLink": "https://graph.microsoft.com/v1.0/sites/martello1.sharepoint.com,..........",
    "value": [
{},
{},
{},
...200
]
}

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Figured this out, needed to specify the pagination parameter name and value as well.

3 Likes