# How to set multiple json data to a one time request using external json file

**URL:** <https://community.postman.com/t/how-to-set-multiple-json-data-to-a-one-time-request-using-external-json-file/5481>\
**Category:** Help Hub\
**Created:** [May 17, 2019, 10:38am UTC](https://community.postman.com/t/how-to-set-multiple-json-data-to-a-one-time-request-using-external-json-file/5481 "2019-05-17T10:38:58Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![gpub1](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gpub1](https://community.postman.com/u/gpub1)\
**Post date:** [February 22, 2021, 8:29pm UTC](https://community.postman.com/t/how-to-set-multiple-json-data-to-a-one-time-request-using-external-json-file/5481/11 "2021-02-22T20:29:46Z")

</div>

hope this helps

> [@Running a request multiple times with different data sets](https://community.postman.com/t/running-a-request-multiple-times-with-different-data-sets/1064):
>
> Hi, I am trying make a request and call multiple times with different data but runs only one time. In a GET request i have the URL {{url}}/dev/users/isUserNameAvailable?username={{username}} Then in Pre-request Script I have var usernames = pm.environment.get(“usernames”); if(!usernames){ usernames = [“AsdBsd”, “asd123”, 123456, “123asd”, “asdfghjklzxcvbnmqwertyuio”]; } var currentUsername = usernames.shift(); pm.environment.set(“username”, currentUsername); pm.environment.set(“use…

---

_[View the full topic](https://community.postman.com/t/how-to-set-multiple-json-data-to-a-one-time-request-using-external-json-file/5481)._
