# Use different params for different Request

**URL:** <https://community.postman.com/t/use-different-params-for-different-request/4760>\
**Category:** Help Hub\
**Created:** [March 29, 2019, 9:42am UTC](https://community.postman.com/t/use-different-params-for-different-request/4760 "2019-03-29T09:42:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aravind\_Shankar](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Aravind\_Shankar](https://community.postman.com/u/Aravind_Shankar)\
**Post date:** [March 29, 2019, 9:42am UTC](https://community.postman.com/t/use-different-params-for-different-request/4760/1 "2019-03-29T09:42:25Z")

</div>

I have a collections with about 50 requests . I am looking for a way to add params(JSON\_ for the requests during runtime , imported from data files . Each request has its own param key and value .  
Is there a way to run a collection with passing different param to different requests . Please note , I’m a beginner for postman

---

<div class="post-metadata">

**Author:** ![Whersh](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@Whersh](https://community.postman.com/u/Whersh)\
**Post date:** [April 8, 2019, 7:27pm UTC](https://community.postman.com/t/use-different-params-for-different-request/4760/2 "2019-04-08T19:27:33Z")

</div>

[https://learning.getpostman.com/docs/postman/collection\_runs/working\_with\_data\_files/](https://learning.getpostman.com/docs/postman/collection_runs/working_with_data_files/)

The above link is exactly what you are looking for I believe. Using data files is exactly what you want to do in this case. The documentation on that page takes you through a sample collection being run 4 times with different parameter values each time.

Let us know if doesn’t help enough.

---

<div class="post-metadata">

**Author:** ![Aravind\_Shankar](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Aravind\_Shankar](https://community.postman.com/u/Aravind_Shankar)\
**Post date:** [April 12, 2019, 6:29am UTC](https://community.postman.com/t/use-different-params-for-different-request/4760/3 "2019-04-12T06:29:44Z")

</div>

> [@Whersh](#):
>
> [https://learning.getpostman.com/docs/postman/collection\_runs/working\_with\_data\_files/](https://learning.getpostman.com/docs/postman/collection_runs/working_with_data_files/)

Thanks for your reply !!

But my problem is not only running a request with different params , But also I need to run different request with different params .If I run a collection with a JSON or CSV file , Every request run for the cases in that file (right ?) . But I need my first request to run for certain set of key values and the next request should run for different key values . Is it possible with postman . By reading the above quoted link I came to know that “I can only use one data file for one run” . Is there any way to make the request skip the key values that does not meant for them .

Let me be clear ,  
I have requests a and b .  
I have key value set 1 for a and 2 for b  
Since I can pass only one data file I am going to list both 1 and 2 in that data file  
I need request b to skip 1 and request a to skip 2  
Is there any possible way to do that

Thanks In Advance !!

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [April 15, 2019, 5:54am UTC](https://community.postman.com/t/use-different-params-for-different-request/4760/4 "2019-04-15T05:54:14Z")

</div>

@Aravind_Shankar I recently came across a similar question around this on SO -

> <https://stackoverflow.com/questions/55649051/how-do-i-block-undefined-variables-from-being-sent-on-postman/55651273#55651273>

I wrote an answer there, you can use that answer as a step towards solving your problem.  
You can dynamically generate request body / params using a variable and the pre-request script.
