Forum Discussion
I do know the total count as it comes back from each request. I've tried setting the has next to 'true' and then the total pages to fetch = &entity.total_count, but it complains that 'entity' is undefined for some reason. What am I missing?
your total pages to fetch will only be able to use input parameters, unfortunately not the data from the response. You won't be able to use the $entity
within that, so you'll have to use the has next to determine if you've reached the end, you could do something like $entity.data.length >= 100 && (100 * (snap.out.totalCount + 1) <= $entity.total_count)
in order to check for both 1) you've got all of the data expected in this response and 2) you haven't reached the limit of data.
- anubhav_nautiya6 years agoContributor
Hi Manjusha,
Could you please specify in which Snap you are getting this error