Replies: 3 comments 11 replies
-
@Mkallday no, you dont need 2 request for pagination to work.
|
Beta Was this translation helpful? Give feedback.
4 replies
-
Modify the below code as per your requirements let json = tc.response.json;
let nextUrl = json["@attributes"].next;
if(nextUrl)
{
tc.setVar('next_url', nextUrl)
console.log("running next request", nextUrl);
await tc.retryRequest();
}
else
{
console.log("got all the data");
} |
Beta Was this translation helpful? Give feedback.
6 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1. Do I have to make 2 API calls to trigger a pagination flow?
2. How do I make it continuously call the nextUrl? Return all the data?
First Request
1.Tests Tab: Set Env Variable for nextUrl

Second Request
OR
Pre Run Tab: Both requests
Beta Was this translation helpful? Give feedback.
All reactions