cancel
Showing results for 
Search instead for 
Did you mean: 

REST GET snap Pagination issue

deeps
New Contributor III

I am using REST Get snap and pagination is not working.
pic1
pic2
Sample output
“entity” : {
@odata.context” : “https://test-odata.com/at.odata/v2.0/$metadata_65687877”,
“value” : ,
@odata.nextLink”“https://test-odata.com/at.odata/latest/&%24top=20000&$skip=10000&$skiptoken=2
},

7 REPLIES 7

alchemiz
Contributor III

Try enclosing the keyname in [‘’]

$entity[‘@odata.nextLink’] != null

or you can also use the get method

e.g

$entity.get('@odata.nextLink')  != null

or 

$entity.get('@odata.nextLink','').length > 0

bojanvelevski
Valued Contributor

Hi @deepthi.chidi,

Evaluating expressions in the pagination fields (‘Has Next’ and ‘Next URL’) is not the same as evaluating expressions in a Mapper with an incoming object. The behavior is different since the very same output of the snap is used to calculate whether there is a next step or not.

That’s why I think @AleksandarAngelevski 's solution is correct, and I suggest you to try and validate or run the pipeline to see the actual results.

Regards,
Bojan

Hi,

The syntax suggested by @alchemiz is working with me:

image
$entity.get(‘@odata.nextLink’) != null
$entity[‘@odata.nextLink’]

Thank you