
Announcements
Hi all,
I'm using an API that returns data in JSON format. The data is returned 500 records at a time and has a skip function that allows you to return the next 500 results e.g. $skip 500. Note that if you say skip 5000 records and there was only 4900 the call will still function (won't error out), it just returns with minimal information (example below).
I am trying to set-up a loop that will stop running when the JSON data is missing the value field will be empty. It will also be missing the @OData.nextLink field. So far I have tried setting a condition that if
How can I create a loop that if value is empty it will break?
If it helps the last page always returns the following JSON:
You're on the right track. You have a seed, a page size, and an exit condition. Keep working on the comparison logic.
As you can imagine, it is close to impossible to assist with API questions unless you give access to that API (which you may not want to do)