Dan Cook
05/27/2023, 5:52 PMid
value from the last fetched record, and use that in the request parameter since_id=
. I think part of the problem is that the JSON is formatted kind of funny, such that the JSONPath to get to the id value is difficult.
Anybody have suggestions?Sherif Nada
05/27/2023, 6:03 PM{{ last_records[-1]['id'] }}
as the cursor valueDan Cook
05/27/2023, 6:15 PMDan Cook
05/27/2023, 6:23 PM*
Cursor value = {{ last_records[-1] }}
In that case I get 5 pages of results, each with a valid JSON payload containing 5 records. Unfortunately it's the same payload on each page, since the cursor isn't instructed how to populate itself with the id value of the last fetched record.Sherif Nada
05/27/2023, 6:25 PMtransaction
and the cursor value i suggested above?Dan Cook
05/27/2023, 6:27 PMtransaction
or "transaction"
as the record selector I get an error message:
list object has no element -1
Sherif Nada
05/27/2023, 6:36 PMrecord_selector=[*, transaction]
and cursor_value={{ last_records[-1]['id'] }}
Dan Cook
05/27/2023, 10:28 PM>= id + 1
rather than >= id
, {{ last_records[-1]['id'] +1 }}