Forum Discussion
jfpelletier - if you check the "Enable debug" in the snap, you will see a "_debug" field that contains some useful information to help diagnose what's going on. In particular, look at the URL generated for each page call. To temporarily limit the number of iterations, you can update your "Has next" to something like "snap.out.totalCount < 5 && $entity.itemCount > 100" which will stop the iterations at 5 so you can view the results.
My guess is that your "skip" value is the number to skip from zero, not the last iteration. So that might need to be something like "100 * (snap.out.totalCount + 1)" - which would result in 100, 200, 300, ..., and so on until it reaches the end.
Hope this helps!
- jfpelletier6 months agoContributor
Hello koryknick ,
Thanks a lot for your reply! I have found the solution in your suggestion. I didn't know about the snap.out.totalCount counter, and I used it to count and increment the items passed to that I can control the flow with this "Has next" expression: $entity.itemCount - ((snap.out.totalCount + 1) * 100) > 0
It works like a charm, and I can even control the number of items per page as well.
Have a nice day, and thanks again for your help!
JF