New to postman seeking help with extracting data

Greetings all, If someone can help me I would really appreciate it…

I am able to run this Microsoft Graph Query https://graph.microsoft.com/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq ‘Team’) using a registered app.

I get a response as expected, however it does not provide all of the data that is available. After some review i understand that the output has a “@odata.nextLink”: response and when i click on it, it goes to the next amount of data. I expect that there will be hundreds of thousands of lines of data…

How do I get ALL of the data in 1 output even it its saved as a JSON for me automatically?

Hi, did you find a solution?

Regards,
D

That is a standard pattern for API’s called Pagination.

To prevent the client application from being overloaded, the API will only return x records in one go (which may or may not be configurable).

You will then need to look for that nextLink reference and if it exists, you will need to loop through the request until nextLink no longer exists or is null.

If you want all of the data in one place, then you will have to script this. Potentially by adding iteratively to an environment or collection variable and then when nextLink no longer exists, dump the results to the console.