# \#dynamic-variable

**URL:** https://community.postman.com/tag/dynamic-variable/440.md

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

---

## [Visualize mock variables values in calls history](https://community.postman.com/t/visualize-mock-variables-values-in-calls-history/63326)

<div class="topic-metadata">

**Author:** [@josecifuentealuma](https://community.postman.com/u/josecifuentealuma)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 2:30am UTC](https://community.postman.com/t/visualize-mock-variables-values-in-calls-history/63326 "2024-07-03T02:30:11Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Incorrect parameter value in request in runner](https://community.postman.com/t/incorrect-parameter-value-in-request-in-runner/57555)

<div class="topic-metadata">

**Author:** [@supply-astronomer-38](https://community.postman.com/u/supply-astronomer-38)\
**Replies:** 11\
**Last updated:** [February 12, 2024, 11:50am UTC](https://community.postman.com/t/incorrect-parameter-value-in-request-in-runner/57555 "2024-02-12T11:50:37Z")

</div>

When I use pre-defined variables in request body value of parameter in request in runner is incorrect :open\_mouth: I am attaching screenshots to explain. variable in body: Request and Response in Runner: logs: …

---

## [Dynamic Variable in Request Body Validateion Error](https://community.postman.com/t/dynamic-variable-in-request-body-validateion-error/15227)

<div class="topic-metadata">

**Author:** [@darren.capner](https://community.postman.com/u/darren.capner)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 7:10pm UTC](https://community.postman.com/t/dynamic-variable-in-request-body-validateion-error/15227 "2023-07-14T19:10:18Z")

</div>

Hi, I am using a dynamic variable {{$randomInt}} in my request body and the API Designer’s schema validation on for the collection is indicating that there are validation errors. I am using the following request body i…

---

## [Searching response for dynamic value based on specific string](https://community.postman.com/t/searching-response-for-dynamic-value-based-on-specific-string/45682)

<div class="topic-metadata">

**Author:** [@meatinaplasticsack](https://community.postman.com/u/meatinaplasticsack)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 1:43pm UTC](https://community.postman.com/t/searching-response-for-dynamic-value-based-on-specific-string/45682 "2023-03-28T13:43:00Z")

</div>

Hello, I have this test case: I need to search response for ID (dynamic value) and store it in variable for reusing it in next request. To find this ID, I need to go through array objects, find specific string/value in …

---

## [Customizations around dynamic variables in mock server](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470)

<div class="topic-metadata">

**Author:** [@material-engineer-20](https://community.postman.com/u/material-engineer-20)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 10:34am UTC](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470 "2022-05-19T10:34:52Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Runner with input from csv file](https://community.postman.com/t/runner-with-input-from-csv-file/34535)

<div class="topic-metadata">

**Author:** [@d-landberg](https://community.postman.com/u/d-landberg)\
**Replies:** 1\
**Last updated:** [April 18, 2022, 2:54pm UTC](https://community.postman.com/t/runner-with-input-from-csv-file/34535 "2022-04-18T14:54:43Z")

</div>

Hi I have a input from a csv file with different colums mapped to different dynamic variables. One of the colums contain ip address, if there are only one ip address the script works against the endpoint. It will look …

---

## [Postman Features for Testers](https://community.postman.com/t/postman-features-for-testers/33664)

<div class="topic-metadata">

**Author:** [@sseenivasan89](https://community.postman.com/u/sseenivasan89)\
**Replies:** 2\
**Last updated:** [March 20, 2022, 4:05pm UTC](https://community.postman.com/t/postman-features-for-testers/33664 "2022-03-20T16:05:06Z")

</div>

Hi Everyone, I have recently taken webinar on some of the postman features that helps day in day out for testers Topics : 1.Import and Export 2.Dynamic Variables 3.Generating Client Code 4.Triggering collection run…

---

## [Looping through array variable](https://community.postman.com/t/looping-through-array-variable/28975)

<div class="topic-metadata">

**Author:** [@sachintss](https://community.postman.com/u/sachintss)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 8:36pm UTC](https://community.postman.com/t/looping-through-array-variable/28975 "2021-10-22T20:36:25Z")

</div>

I am trying to loop through and array for each iteration. I have below array variable in my environment host variable section: UserId = “Margin\_User”,“QFC\_LOB\_User”,“QFC\_User” In my Test code, i am retrieving with bel…

---

## [When running the collection, not able to post the data using the selected JSON file](https://community.postman.com/t/when-running-the-collection-not-able-to-post-the-data-using-the-selected-json-file/27022)

<div class="topic-metadata">

**Author:** [@swapnil-excellarate](https://community.postman.com/u/swapnil-excellarate)\
**Replies:** 0\
**Last updated:** [August 23, 2021, 11:23am UTC](https://community.postman.com/t/when-running-the-collection-not-able-to-post-the-data-using-the-selected-json-file/27022 "2021-08-23T11:23:11Z")

</div>

I am not able to run the collection for the POST request while values are fetched from the selected JSON file. Here TagTypes\_CreateOrEdit\_name's value is getting generated into the Request Body but for TagTypes\_CreateOr…

---

## [Running Collection with a GET to an API and a POST to a Node JS not passing dynamic data](https://community.postman.com/t/running-collection-with-a-get-to-an-api-and-a-post-to-a-node-js-not-passing-dynamic-data/23148)

<div class="topic-metadata">

**Author:** [@fred-meyers](https://community.postman.com/u/fred-meyers)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 7:16am UTC](https://community.postman.com/t/running-collection-with-a-get-to-an-api-and-a-post-to-a-node-js-not-passing-dynamic-data/23148 "2021-05-03T07:16:33Z")

</div>

(28.04.2021 adding images that did not upload to original post) The GET is to a vendor API on a local network server and the POST to a Node.JS on the Mac I am running Postman on. I am lost in trying to follow the Space…

---

## [How to automatically set new token's value as a dynamic variable and use this variable in my collection of requests?](https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163)

<div class="topic-metadata">

**Author:** [@orbital-module-sagan](https://community.postman.com/u/orbital-module-sagan)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 8:18am UTC](https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163 "2021-01-15T08:18:33Z")

</div>

Hello all, The thing I’m trying to automate is setting a token as a dynamic variable to every next request after the login in my collection. Because the token is different every time I log in, I’d like to know how this…

---

## [Writing smart Tests using Dynamic Variables and functions!](https://community.postman.com/t/writing-smart-tests-using-dynamic-variables-and-functions/18475)

<div class="topic-metadata">

**Author:** [@bpricilla](https://community.postman.com/u/bpricilla)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 5:06am UTC](https://community.postman.com/t/writing-smart-tests-using-dynamic-variables-and-functions/18475 "2020-12-15T05:06:28Z")

</div>

Hello Folks :blush: Hope everyone is doing good and getting ready for 2021!! While testing your API’s its advised to write more re-usable and efficient test cases. One such practice can be: Try to use more Dynamic vari…
