Forum Discussion

sravan's avatar
sravan
New Contributor II
3 years ago
Solved

Looping through Api call

Hi We have a requirement where, If we do an api call , we get response something like below { records_remaining : “200”, records_processed: “100”, failed: “0” }, “entity”: [ "rec1: “abc...
  • bojanvelevski's avatar
    3 years ago

    Hi @sravan,

    Even though the API does not support pagination, I think we can leverage of the pagination option in the Rest Get snap. There is a Pagination Interval option, which basically means “Wait for X seconds before doing the next request”.

    The logic would be something like:

    HasNext: parseInt($records_remaining) > 0
    NextURL: https:abc.com/8080/getfullload?batch=50

    Let me know if this helps,

    Regards,
    Bojan