For Loop is ending after juts 1 iteration

Hello.

I’ve recently started work with postman flows. I’m not sure why this flow is not working. I’m running a flow that loops through a list of items and sends a POST request for each one.
The first iteration works fine (the request is successful), but after that the flow stops and doesn’t continue to the next items.

Thanks in advance for your help!

1 Like

Hi @technical-saganist-3

Welcome to the forum!

It looks like your list port in your evaluate block isn’t connected to anything :slight_smile:

Hello, Sorry that was the wrong picture. Only the first iteration works fine

Hi @technical-saganist-3

Your for loop triggers the evaluate block’s curve port every iteration but the list port is only triggered once. You can store the list as a variable and then use a get variable block on your evaluate block.

We have some docs that explain what’s happening here

It works now. Thanks a lot!