Execute Sub-workflow (With JSON Code)

Hi everyone, good evening!

I’m trying to use the “Execute Sub-Workflow” node in a dynamic way, since both the workflow to be executed and the variables that need to be passed to it are built during the main flow.

I noticed that the node seems to have a mode that, in theory, should allow this — but I couldn’t find any documentation or examples explaining how to properly structure the JSON for it.

Has anyone managed to do this or knows how the JSON should be formatted?

It’s simple — just create a sub-workflow that starts with the node “When Executed by Another Workflow.”
After you finish building it, download the sub-workflow as a JSON file and paste it into your main workflow’s “Execute Workflow” node.

2 Likes

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