11-29-2023 06:31 AM
Hi,
I need to set the pagination for get snap where there is 1210 pages. The output for without pagination is below
When I am giving the expression $entity.meta.pageTotalCount>100. its throwing error that $entity is not defined.
Can anyone help what should be the appropriate expression in hasnext field and next url?
12-02-2023 05:50 AM
@dpan32 - I believe you are close. Couple thoughts. The dynamic validation in this snap is trying to interpret the expression based on the input data, but when executed, it will work against the output data. When I am working to build the "Has next" and "Next URL" settings, I usually pull in a Mapper snap after the HTTP Client / REST Get snap to work out the syntax.
In your case, I believe what you want is $entity.meta.pageTotalCount == 100 (not > 100). That way it will continue cycling until the count is less than 100.
Hope this helps!