Is there a way to know which webhook was called?

Describe the problem/error/question

Is there a way that the switch node would know via some n8n internal parameter or something else, which webhook was called? I’m trying not to duplicate my nodes. I can’t add extra parameters in the webhook call - I don’t control what is being sent, so need something internal to know which one was called and map it to the Route node.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest - self hosted.
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main with workers
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: linux

You can simply use a “Edit Fields” node to manually set any field you want. Then you can use that field to do your routing

Just make sure you enable the toggle “Include Other Input Fields” so that you have all of the data you need

Screenshot 2024-03-11 at 2.15.24 PM


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