Pagination issue

Hi there,

I am trying to extract emails with Microsoft Graph API but have run into an issue with pagination as I am new to this.

The API gives 100 results at a time, and then if there are emails it adds the below variable in the output: @odata.nextLink which contains a link like below:

https://graph.microsoft.com/v1.0/users/messages?%24filter=receivedDateTime+ge+2024-11-20T09%3A00%3A05.315Z+and+receivedDateTime+le+2024-11-20T17%3A00%3A05.319Z+and+isDraft+eq+fals.

Can someone please assist with what to do next in my scenario to run through the pages until the variable @odata.nextLink has no link or does not exist in the output?

To extract from the next page I use another HTTP make a request with the URL as the output.(photo attached).