Switch after wait

Describe the issue/error/question

i have a wait node with returns when fulfilled a json like { “answer”: “yes”}
with the switch node afterwards i want to take care of
th answer options as they are yes, no and cancceled.

However i cant figure out how make it, not the logic with expressions, but as soon as i time a expression like {{$node[“Wait”].json[“body”][“answer”]}} its seems throw an error with “undefined” and the gui options for the output s disappear.

What is the error message (if any)?

Please share the workflow

Information on your n8n setup

  • **n8n version: 0.214.2
  • **Database you’re using (default: SQLite): SQLite
  • **Running n8n with the execution process [own(default), main]:main
  • **Running n8n via [Docker, npm, n8n.cloud, desktop app]:docker ( embed, custom)

Hi @Martin_Forster,

Using the webhook option in a wait can make it tricky to make a workflow as you would need to enable the execution logging, Grab the data from a request then pin it in the node to test. Looking at what you are trying to do the example below might help.

1 Like

Thank you that helped a lot. Expecially, that i could coopy the body and “pin” it as otput of the wait node.

1 Like

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