I use a API call to retrieve items in bulk , if there are more then 1000 entries , it gives me a __next option, I use paths to check if this __next option is returned and if true , I run a different API Call with this info.
but I need to run this call as many times as the response returns this __next option , I can do this with paths, but I want to re run the last path as many times as necessary , otherwise I need to code more then 50 paths to be sure. . . .
is there a way to loop this ?
so , call api call 1
if response contains __next
run api call 2
if response contains __next
run api call 2
and so forth
So I want the path go back and rerun the last path as many times as necessary