# How to run collection taking data from multiple files present in the folder

**URL:** <https://community.postman.com/t/how-to-run-collection-taking-data-from-multiple-files-present-in-the-folder/41662>\
**Category:** Help Hub\
**Tags:** newman-project, tests, variables, collections, json\
**Created:** [December 1, 2022, 8:25am UTC](https://community.postman.com/t/how-to-run-collection-taking-data-from-multiple-files-present-in-the-folder/41662 "2022-12-01T08:25:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garimadwivedi1](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@garimadwivedi1](https://community.postman.com/u/garimadwivedi1)\
**Post date:** [December 1, 2022, 8:25am UTC](https://community.postman.com/t/how-to-run-collection-taking-data-from-multiple-files-present-in-the-folder/41662/1 "2022-12-01T08:25:52Z")

</div>

Hi All,

I am looking for the solution against following requirement:  
I wanted to create an automation script to read the data from specific folder at runtime. The number of files in the folder may vary and each JSON file in the folder is the individual JSON request body.  
Also the path of the folder can be changes according to need of dataset to be tested.

Please suggest.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:52pm UTC](https://community.postman.com/t/how-to-run-collection-taking-data-from-multiple-files-present-in-the-folder/41662/2 "2024-12-12T12:52:15Z")

</div>

Closed on December 12, 2024, 12:52pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
