Need Looping Idea

Hey @Prem7 , try adding an additional “hanging” node after HTTP Request node (say, coled “Cookie”) to collect the returned cookie to be used in the next itration. Then if it is not the first run you can reference that cookie with an expression like this {{ $runIndex ? $('Cookie').first(0, $runIndex - 1).json.cookie : 'INITIAL_COOKIE' }}.

Here’s just a visual to demostrate the idea. You can run to observe how session cookie gets updated taking value from the “Cookie” node stored in the previous iteration.

1 Like