HTTP Client Origin - Stop Condition for Pagination

  • 26 July 2022
  • 1 reply

I need to extract data from an API using OAuth2 connection. As per the data, they provide /cursor at the end of each page and that cursor can be used to get the records from next page.

In Pagination tab, I used Link with Response field and tried to add Stop Condition with /cursor. but, not able to handle this scenario.

Can someone please help. Thanks in Advance!!

1 reply

Userlevel 2

Hi @iaakashbansal 

Use a condition like the following one:

"${record:value('/cursor') == null

Adjust actual evaluation to the conditions you expect to find when no more records are available.