# Workflow result access at Webhook node before it will be sent as a response

**URL:** <https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731>\
**Category:** Questions\
**Tags:** node\
**Created:** [September 8, 2021, 6:17pm UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731 "2021-09-08T18:17:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugene/32/6619_2.png) [@Eugene](https://community.n8n.io/u/Eugene)\
**Post date:** [September 8, 2021, 6:17pm UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/1 "2021-09-08T18:17:47Z")

</div>

Can I access workflow result at Webhook node before it will be sent as a response if I use “responseMode: lastNode”?

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [September 9, 2021, 7:31am UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/2 "2021-09-09T07:31:05Z")

</div>

Hey @Eugene!

Welcome to the community 💖

The option `Response Mode: Last Node` will return the output from the Last node. You can use this option to send your own response or send the processed from the last node.

We earlier did a live stream where we demonstrated how you can use the Webhook node to create an API as well as a Dashboard. You may find it helpful: [Building Low-code APIs and Dashboards 🚀 - YouTube](https://youtu.be/ifHYNvRFrBU)

---

<div class="post-metadata">

**Author:** ![Eugene](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugene/32/6619_2.png) [@Eugene](https://community.n8n.io/u/Eugene)\
**Post date:** [September 9, 2021, 8:11am UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/3 "2021-09-09T08:11:02Z")

</div>

Hi, thanks for response. I didn’t explain problem well enough.  
I want to access response before it will be sent in code.  
For example at “webhook” method.

```auto
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
    // some logic 
    // response check 
  }

```

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [September 9, 2021, 8:38am UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/4 "2021-09-09T08:38:19Z")

</div>

I think it is possible, but I am not 100% sure. I am assigning this to @RicardoE105. He can provide more detail

---

<div class="post-metadata">

**Author:** ![Eugene](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugene/32/6619_2.png) [@Eugene](https://community.n8n.io/u/Eugene)\
**Post date:** [September 9, 2021, 8:50am UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/5 "2021-09-09T08:50:41Z")

</div>

Thanks a lot

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [September 9, 2021, 1:38pm UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/6 "2021-09-09T13:38:12Z")

</div>

I do not think this is possible. But why do you need to do that? What is your use case?

---

<div class="post-metadata">

**Author:** ![Eugene](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eugene/32/6619_2.png) [@Eugene](https://community.n8n.io/u/Eugene)\
**Post date:** [September 9, 2021, 1:54pm UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/7 "2021-09-09T13:54:56Z")

</div>

I wanted to check result and response 400 if it’s not like I want. I will use different node for this. Thanks for quick answers

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [September 10, 2021, 12:06am UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/8 "2021-09-10T00:06:29Z")

</div>

Sadly that is not possible.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [September 10, 2021, 12:55pm UTC](https://community.n8n.io/t/workflow-result-access-at-webhook-node-before-it-will-be-sent-as-a-response/7731/9 "2021-09-10T12:55:52Z")

</div>

fyi there is already a feature request for that:

> [@Webhook - modify response code based on criteria \[GOT CREATED\]](http://community.n8n.io/t/webhook-modify-response-code-based-on-criteria/3721/4):
>
> Thanks for the further information. Now I have a clear idea of what exactly you mean. Yes, currently this is not possible. I too believe this can be a helpful feature.
