Referencing Nodes in Webhook Data

I want to send JSON to a workflow via a webhook. I want the JSON to include references to nodes and have the workflow insert those values into the JSON. Is this possible?

You mean you want to include expressions in your JSON payload and want n8n to evaluate these? This should work in principle, but couldn’t take place in the webhook itself. It’s not a problem in later nodes though with the $evaluateExpression method though.

Consider the below example:

Here the Code node would evaluate whatever expression you send in the myExpression field of your webhook payload. This could be something like $('Set').item.json.someNewValue if you want to reference a value from the Set node.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.