How do I get the HTTP event body in a Node.js code step?

This topic was automatically generated from Slack. You can find the original thread here.

sandeep sai : I’ve a problem here.
How can we get event body data in Node JS.
I’ve a webhook url. How can I get the body data like Event.

Dylan Sather (Pipedream) : Hi , you can access the event data using the variable steps.trigger.event .

The HTTP payload / body is accessible at steps.trigger.event.body .

If you send an event to your workflow and select it from the inspector on the left, you should see the data in the top of your workflow, and you’ll be able to click into the event data there. You’ll see an option to Copy Path next to each property of the event data, which will copy the name of the variable for that property to your clipboard

Dylan Sather (Pipedream) : See https://docs.pipedream.com/workflows/events/#event-format for more information