How to use multiple web hooks in single point

image

When I use Webhook1 I’m getting error
ERROR: The node “Webhook” hasn’t been executed yet, so you can’t reference its output data [Line 8 | Item Index: 0]

In Completed_Activity Function I’m getting error
const value;
if($node[“Webhook”].json){
value=$node[“Webhook”]?.json;
return value;
}
if($node[“Webhook1”]?.json){
value=$node[“Webhook1”].json;
return value;
}

Hey @AMS_KHADHIRI,

That error makes sense to me, It won’t exist if it has not yet ran. What I tend to do for things like this is pop in a NoOp node then I can just use $node["webhookData"] and it will contain the data from whatever webhook happened to run.

image