# Post Collection Run hook

**URL:** <https://community.postman.com/t/post-collection-run-hook/6887>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [July 31, 2019, 1:49pm UTC](https://community.postman.com/t/post-collection-run-hook/6887 "2019-07-31T13:49:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonfenske](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antonfenske](https://community.postman.com/u/antonfenske)\
**Post date:** [July 31, 2019, 1:49pm UTC](https://community.postman.com/t/post-collection-run-hook/6887/1 "2019-07-31T13:49:11Z")

</div>

I’m running a Postman collection as an API test suite to verify that a certain REST service operates as expected.  
The idea is that after every “collection run” a POST request should be sent to a certain URL with the full test report attached.  
How can that be achieved?

---

<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:** [July 31, 2019, 8:11pm UTC](https://community.postman.com/t/post-collection-run-hook/6887/2 "2019-07-31T20:11:23Z")

</div>

Hello @antonfenske, welcome to the community! 👋

I can think of two ways right now with which you can achieve this:

1. You put a new request at the end of the collection which makes the POST Request along with the full test report.
2. In the **Test script** of the last request of your collection, you can put [`pm.sendRequest`](https://learning.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference/#pmsendrequest) there and make the POST request call.

---

<div class="post-metadata">

**Author:** ![antonfenske](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antonfenske](https://community.postman.com/u/antonfenske)\
**Post date:** [July 31, 2019, 8:37pm UTC](https://community.postman.com/t/post-collection-run-hook/6887/3 "2019-07-31T20:37:55Z")

</div>

Sounds reasonable. However, what’s the best way to fetch the test report to be able to send it from inside Postman?

---

<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:** [August 1, 2019, 7:53am UTC](https://community.postman.com/t/post-collection-run-hook/6887/4 "2019-08-01T07:53:48Z")

</div>

What format is your test report in?  
Is it JSON data? or something like that?

---

<div class="post-metadata">

**Author:** ![antonfenske](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@antonfenske](https://community.postman.com/u/antonfenske)\
**Post date:** [August 3, 2019, 11:22am UTC](https://community.postman.com/t/post-collection-run-hook/6887/5 "2019-08-03T11:22:03Z")

</div>

The report is in JSON.
