# Save responses to a file in our local machine

**URL:** <https://community.postman.com/t/save-responses-to-a-file-in-our-local-machine/13861>\
**Category:** Help Hub\
**Tags:** responseassertion, json, collections, response, tests\
**Created:** [July 3, 2020, 12:45pm UTC](https://community.postman.com/t/save-responses-to-a-file-in-our-local-machine/13861 "2020-07-03T12:45:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 3, 2020, 12:50pm UTC](https://community.postman.com/t/save-responses-to-a-file-in-our-local-machine/13861/2 "2020-07-03T12:50:44Z")

</div>

Hey @girirokr

Welcome to the Postman community! 👋

This is similar to a question that has been asked before, is there anything here that can help?

> [@Save body results to a CSV or JSON file - using newman](https://community.postman.com/t/save-body-results-to-a-csv-or-json-file-using-newman/5861/17):
>
> Hey @hdabas, Welcome to the community! rocket Just jumping in here to see if I can help with getting the request name from the Newman run. Newman has certain events that can be access with the .on() function - A full list can be found here: A basic example of getting the name of the Request would be using something like this: const newman = require('newman') newman.run({ collection: '\<Postman Echo Collection\>', }).on('request', (err, args) =\> { console.log(args.item.name) }) Here’…

---

_[View the full topic](https://community.postman.com/t/save-responses-to-a-file-in-our-local-machine/13861)._
