# Get the body of an Incoming Webhook

**URL:** <https://community.postman.com/t/get-the-body-of-an-incoming-webhook/45870>\
**Category:** Help Hub\
**Tags:** pre-request-script\
**Created:** [March 31, 2023, 5:35pm UTC](https://community.postman.com/t/get-the-body-of-an-incoming-webhook/45870 "2023-03-31T17:35:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MollyMcGuire](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mollymcguire/32/15405_2.png) [@MollyMcGuire](https://community.postman.com/u/MollyMcGuire)\
**Post date:** [March 31, 2023, 5:35pm UTC](https://community.postman.com/t/get-the-body-of-an-incoming-webhook/45870/1 "2023-03-31T17:35:38Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
What is the best way to see the data being posted from an incoming webhook that will run a specified collection? I created a collection webhook to run from a TestRail event, and I would like to verify that I am indeed receiving the information sent from this webhook to Postman. The official docs say that I can use the globals.previousRequest object in the pre-request script, but when I trigger my webhook from TestRail, no body data is present when I redirect it to the console. I don’t even get console information from these runs that are triggered by the webhook.

_Details (like screenshots)_:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/f/3f7cc4e440a3a4a2c834d5330152b864e10c3daa.png)  
Following the documentation for incoming webhooks here: [Trigger collection runs using webhooks | Postman Learning Center](https://learning.postman.com/docs/collections/running-collections/collection-webhooks/#accessing-the-request-body-in-scripts)

_How I found the problem_:  
Following the doc found [here](https://learning.postman.com/docs/collections/running-collections/collection-webhooks/#accessing-the-request-body-in-scripts), using a webhook from an external system to launch a collection, and expecting to be able to test/validate the post response body that is incoming to my collection.

_I’ve already tried_:  
Reading and following the docs, googling for similar issues, reformatting the ‘console.log(JSON.parse(pm.globals.previousRequest))’ call in the pre-request script, and moving content from the pre-request script of the collection to the request, and keeping it in both spaces.
