# \#loops

**URL:** https://community.postman.com/tag/loops/363.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Loops only executing once](https://community.postman.com/t/loops-only-executing-once/86539)

<div class="topic-metadata">

**Author:** [@andresrv88](https://community.postman.com/u/andresrv88)\
**Replies:** 10\
**Last updated:** [November 10, 2025, 5:33pm UTC](https://community.postman.com/t/loops-only-executing-once/86539 "2025-11-10T17:33:43Z")

</div>

Hi, I’m trying to make an API call to a GET endpoint that returns an array of objects. After that I want to iterate through the array and call an API with PUT method for each object. I tried with the “For” loop but aft…

---

## [Compare Two Lists for matches. Extract key from matching index](https://community.postman.com/t/compare-two-lists-for-matches-extract-key-from-matching-index/66051)

<div class="topic-metadata">

**Author:** [@dbrass137](https://community.postman.com/u/dbrass137)\
**Replies:** 6\
**Last updated:** [August 14, 2024, 11:05am UTC](https://community.postman.com/t/compare-two-lists-for-matches-extract-key-from-matching-index/66051 "2024-08-14T11:05:30Z")

</div>

So I’m currently working to collect Engine hours from Samsara, then find the corresponding Meter in my MaintainX system, and update the hours for each meter. I have succeeded in pulling the meters as a list, filtering f…

---

## [How to get all combinations of 2 or more lists to 1 request?](https://community.postman.com/t/how-to-get-all-combinations-of-2-or-more-lists-to-1-request/63864)

<div class="topic-metadata">

**Author:** [@elefantecinza](https://community.postman.com/u/elefantecinza)\
**Replies:** 4\
**Last updated:** [July 9, 2024, 9:22pm UTC](https://community.postman.com/t/how-to-get-all-combinations-of-2-or-more-lists-to-1-request/63864 "2024-07-09T21:22:28Z")

</div>

Lets suppose we have 2 lists and a request that receives 2 variables list1 = \[a, b\] list2 = \[1, 2, 3\] request = { url = localhost:8080 var1 = x var2 = y } How can I send that request using all values combination …

---

## [Postman Flow - Display Current Index in For Loop](https://community.postman.com/t/postman-flow-display-current-index-in-for-loop/62166)

<div class="topic-metadata">

**Author:** [@michaelminn](https://community.postman.com/u/michaelminn)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 3:55pm UTC](https://community.postman.com/t/postman-flow-display-current-index-in-for-loop/62166 "2024-06-13T15:55:54Z")

</div>

I am trying to create an index value for a for loop, I am setting up a large json array and it would be useful to see where it currently is in the for loop. I have found this article thats only 3 months old but cannot s…

---

## [Postman Flows - For Loop - End of array processing](https://community.postman.com/t/postman-flows-for-loop-end-of-array-processing/60517)

<div class="topic-metadata">

**Author:** [@chrisdoar](https://community.postman.com/u/chrisdoar)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 10:11am UTC](https://community.postman.com/t/postman-flows-for-loop-end-of-array-processing/60517 "2024-05-02T10:11:07Z")

</div>

All, Apologies if this has already been asked but I cant see anything and I haven’t been able to figure it out myself. I thought I was making progress with it but the IF block and checking whether the array was populate…

---

## [Loop request based on some logic in postman flow](https://community.postman.com/t/loop-request-based-on-some-logic-in-postman-flow/59704)

<div class="topic-metadata">

**Author:** [@antony-asish](https://community.postman.com/u/antony-asish)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 4:56pm UTC](https://community.postman.com/t/loop-request-based-on-some-logic-in-postman-flow/59704 "2024-04-08T16:56:06Z")

</div>

I have the following request flow I create the project Then compare the project , 3 . call Get Project API for Get Status 4 . Then check status =\> Is status is 40 =\>Is status is not 40, call agiain 3 step like call…

---

## [Can't update body variable of request in for loop](https://community.postman.com/t/cant-update-body-variable-of-request-in-for-loop/56585)

<div class="topic-metadata">

**Author:** [@nibhvdigitalimpact](https://community.postman.com/u/nibhvdigitalimpact)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 6:12pm UTC](https://community.postman.com/t/cant-update-body-variable-of-request-in-for-loop/56585 "2024-01-16T18:12:25Z")

</div>

Problem I’ve several requests which collect information or send information. I include this flow with 2 loops. 1 of them is with a “Repeater” and the other, directly from a “For” loop. Once I run the “For” loop with th…

---

## [Flows - send request - repeat request fails silently](https://community.postman.com/t/flows-send-request-repeat-request-fails-silently/53100)

<div class="topic-metadata">

**Author:** [@cbarrydcg](https://community.postman.com/u/cbarrydcg)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 5:41pm UTC](https://community.postman.com/t/flows-send-request-repeat-request-fails-silently/53100 "2023-11-07T17:41:05Z")

</div>

i have a series of requests that i am using ‘flows’ to orchestrate. each request kicks off a job elsewhere, and what i need to do is wait until the job kicked off from the request is complete until i move onto the next …

---

## [Loop through two arrays](https://community.postman.com/t/loop-through-two-arrays/54041)

<div class="topic-metadata">

**Author:** [@bartlomiejczech](https://community.postman.com/u/bartlomiejczech)\
**Replies:** 1\
**Last updated:** [October 29, 2023, 3:20pm UTC](https://community.postman.com/t/loop-through-two-arrays/54041 "2023-10-29T15:20:09Z")

</div>

Hi, im new in Postman. I have two arrays for example var a = \[“x”,“Y”\] and var b = \[“1”,“2”\] i’d like to send request for each combiination something like for loop in for loop. I can send requests with one array but i ca…

---

## [Foreach or maybe some other command for a Loop?](https://community.postman.com/t/foreach-or-maybe-some-other-command-for-a-loop/46256)

<div class="topic-metadata">

**Author:** [@brcox9090](https://community.postman.com/u/brcox9090)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 9:01pm UTC](https://community.postman.com/t/foreach-or-maybe-some-other-command-for-a-loop/46256 "2023-04-12T21:01:18Z")

</div>

I am working on an API that will pull folder ID’s and totals from the response data. Essentially, trying to make a loop work to count all of the items in a folder, but it needs to drill down into subfolders to get an acc…

---

## [Reference nested JSON arrays and objects in #each loop for Postman Visualizer](https://community.postman.com/t/reference-nested-json-arrays-and-objects-in-each-loop-for-postman-visualizer/15836)

<div class="topic-metadata">

**Author:** [@jonasmellander](https://community.postman.com/u/jonasmellander)\
**Replies:** 14\
**Last updated:** [August 18, 2021, 2:29am UTC](https://community.postman.com/t/reference-nested-json-arrays-and-objects-in-each-loop-for-postman-visualizer/15836 "2021-08-18T02:29:58Z")

</div>

I’m trying to utilize the visulizer module to display information from a JSON response. I’m using the example code from the documentation creating a table. In the example the blob is: { "contacts": \[ { …

---

## [JSON Data and Loops](https://community.postman.com/t/json-data-and-loops/15185)

<div class="topic-metadata">

**Author:** [@JBird20](https://community.postman.com/u/JBird20)\
**Replies:** 5\
**Last updated:** [August 28, 2020, 11:37am UTC](https://community.postman.com/t/json-data-and-loops/15185 "2020-08-28T11:37:40Z")

</div>

Hi, I have an API that responds with the following format. I need to extract the data of the OPEN case. However, i cannot use the array index as this grows everytime there is a new entry made. Can someone advise on how …

---

## [Thoughts on how to move through a collection, but stopping and running x amount of APIs randomly from list of API calls before moving to the next API call](https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537)

<div class="topic-metadata">

**Author:** [@TheTreyThomas](https://community.postman.com/u/TheTreyThomas)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 6:48pm UTC](https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537 "2019-10-23T18:48:09Z")

</div>

What I am trying to accomplish is… Postman Collection contains…say 10 total APIs. I would run the first API and once it has the proper response back, it would then move into the loop where it would run x number of times…
