Forum Discussion
How to return ALL results in API call
The query would paginate if the result of your WebCall contained a field named "lastKey". Do you really have that field or does the number for the next page sit in a different field/column?
As far as I can see, there aren't any lastkey fields. I thought that was some sort of built in variable as a last record identifier.
Here's a snapshot of the last piece of results yielded out of ARC (-499 is the last array of results containing the desired variable values):
-499: [Array[4]
- twilkdaddy9 years agoFrequent Visitor
Any suggestions on how to create or identify that variable to identify the "number for the next page" you mentioned?
Was I provided in the last post helpful at all for troubleshooting where my code problem is?
- ImkeF9 years agoCommunity Champion
Yes, thank you.
I thought it would be ContactID, but this wouldn' work, as that would skip the range fom 500 until 768 in the example you've given.
Is there another field (like "Result") in the dataset that is 500 for that last record where Contact ID is 768? Then you would have to take this.