Extract node name in Expression

I have a question:

Is there any way to extract the node name in expression?
Consider this: {{$node[“Webhook”].json[“query”][“name”]}}

Instead of “Webhook” I need something to dynamically extract the current node name that this expression is defined in it.

Hi @jellybean, I am not aware of a method to achieve this I am afraid. Could you maybe describe your use case for reading the current node name inside an expression?

Data of the current node can be referenced by simply using {{$json["query"]["name"]}}, so you wouldn’t need to specify the current node name just to fetch its items.

1 Like

@MutedJam Wow thank you so much. It’s the solution I’m looking for.

1 Like