Postman - Collection.json - How to make multiple requests by passing an array? (every item in the array will be a query string value for each request)
<p>Below is my json file for the postman collection I have. I would need to make about 100 individual requests and test the response code for each of them. The only thing that would be different in each request is the query string parameter UserID. </p>

<p>So, I have an array that looks something like </p>

<pre><code>var users = [123, 124, 125, 126];
</code></pre>

<p>I would like to pass this array into the collection, so I don't have to create individual <code>'item'</code> objects for every request. Is there a way to do this? I think <code>'variables'</code> would be a good place for this, but I'm not sure how it works. I will be happy with a solution that uses Postman UI as well.</p>

<p>I can write a little console app or some javascript snippet to achieve the same, but wanted to see if it's possible via postman as I enjoy using it.</p>

<pre><code>{
    "variables": [],
    "info": {
        "name": "Test a Set of Users",
        "_postman_id": "postman-guid-id",
        "description": "",
        "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
    },
    "item": [
        {
            "name": "User1",            
            "event": [
                {
                    "listen": "test",
                    "script": {
                        "type": "text/javascript",
                        "exec": "tests[\"Status code is 200\"] = responseCode.code === 200;"
                    }
                }
            ],
            "request": {
                "url": "http://localhost/myAPI/getSomething?UserId=123&amp;isActive=true",
                "method": "GET",
                "header": [
                    {
                        "key": "Accept",
                        "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8,,application/json",
                        "description": ""
                    },  

                    //all my other request headers - they are the same for all requests

                ],
                "body": {
                    "mode": "formdata",
                    "formdata": []
                },
                "description": ""
            },
            "response": []
        },
        "item": [
        {
            "name": "User2" // everything same as above except for the querystring Parameter UserId     
        }

     ]


}
</code></pre>