# Best practices about using of external files (such as json or csv files) in pre/post scripts

**URL:** <https://community.postman.com/t/best-practices-about-using-of-external-files-such-as-json-or-csv-files-in-pre-post-scripts/5217>\
**Category:** Help Hub\
**Tags:** json, jsonschema\
**Created:** [April 30, 2019, 10:43am UTC](https://community.postman.com/t/best-practices-about-using-of-external-files-such-as-json-or-csv-files-in-pre-post-scripts/5217 "2019-04-30T10:43:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benja.rafa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/benja.rafa/32/1410_2.png) [@benja.rafa](https://community.postman.com/u/benja.rafa)\
**Post date:** [April 30, 2019, 10:43am UTC](https://community.postman.com/t/best-practices-about-using-of-external-files-such-as-json-or-csv-files-in-pre-post-scripts/5217/1 "2019-04-30T10:43:55Z")

</div>

I have a question regarding to Postman functionality, please let me know if there existing option or workaround to load arbitrary external file ? (json)  
I need to load the json (jsonschema) file to be used inside pre/post script withinternal js code  
Thank you  
Beni

---

<div class="post-metadata">

**Author:** ![vrolijken](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vrolijken](https://community.postman.com/u/vrolijken)\
**Post date:** [May 9, 2019, 7:31am UTC](https://community.postman.com/t/best-practices-about-using-of-external-files-such-as-json-or-csv-files-in-pre-post-scripts/5217/2 "2019-05-09T07:31:13Z")

</div>

Yes there is (but I think it’s not all that pretty).  
See Tip 5 in [this blog entry](https://blog.getpostman.com/2017/07/28/api-testing-tips-from-a-postman-professional/#gist72560848) or my answer on [this StackOverflow question](https://stackoverflow.com/questions/55440840/load-json-schema-in-postman-from-external-file/55761781#55761781) or more info in [this one](https://stackoverflow.com/questions/54749627/importing-external-libraries-in-postman)
