Calling another workflow

Hi!

I can confirm this is now working! :smiley:

However, I haven’t figured out something. To activate the worflow, we need to have a trigger. In my case, I used a webhook trigger. But when we use the “Execute Workflow”, the starting point is not the trigger, but the Start-node (which makes sense, sure). Why force a workflow to have a trigger?

In any case, I was having this config:


This allowd the wf to be called internally or via webhook. However, this was not working, because the mysql-node needs to grab something from the previous node. It was specifically getting from the Webhook-node like so: {{$node["Webhook"].json["headers"]["yadayada"]}}, but of course, if it was called internally, the previous node is the Start-node.

Is there a way to grab the “previous”-node? If not, to make this available to both webhook trigger and via “Execute Workflow”-node, do I need an node inbetween to test where the data comes from?

For now, I just removed the link between the webhook and the mysql-node, and changed the variable to use the start-node data, as I don’t need this specific node to use webhook, but I’m interested in this as I might have a use case for it.

Thank you so much for your help!