โ06-16-2020 10:45 AM
I have a question the REST API to process more results.
You can specify to process the next page of results, but I can find a way to keep appending the results from the previous call, so even if you process all the results, you only get the last page of the results from the GET REST API snap.
Does anyone have a solution for this other than right an external function?
โ06-16-2020 01:19 PM
Hi Tim,
You can utilize the โHas nextโ and โNext URLโ property of the REST Get snap
Hereโs a example of what your REST Get snap should look likeโฆ
you have the initial request https://rest_endpoint/documents/stuffs?page=1
build an expression that will execute the next url โฆ eval($entity.result.length > 0)
generate the next url โhttps://rest_endpoint/documents/stuffs?page=โ.concat(parseInt(snap.out.totalCount) + 1)