03-07-2023 06:55 PM
I am using REST Get snap and pagination is not working.
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”
},
03-11-2023 04:19 AM
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
03-13-2023 04:41 AM
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
03-13-2023 05:58 AM
Hi,
The syntax suggested by @alchemiz is working with me:
$entity.get(‘@odata.nextLink’) != null
$entity[‘@odata.nextLink’]
Thank you