Powered by
Storing Subflow Outputs in Main Workflow
# 🤝help
f
freezing-jordan-64936
05/24/2025, 3:30 PM
I have a main workflow and a subflow. I'm having an autonomous node (AN) calling the subflow and passing the variable as input. The AN is instructed to store the output inside a variable in the main workflow. However, it does not continue the code execution properly and 'forgets' to store the output from the subflow. This does not always happen, but most of the time. Instructing the AN to only store the variable when continuing the code execution increased the success rate, but it's still not reliable. Any ideas how to fix this? I could use an exit node and store the output manually in a code card, but how do I access the subflow's output from there? And by the way, how do I get rid of the HTML formatting the bot is doing? Thank's for any help!
https://cdn.discordapp.com/attachments/1375858599091241060/1375858599485767731/image.png?ex=683337ac&is=6831e62c&hm=fd594b7cf03aa75b64d174f2b121c01de9d774111ad3b7cb3e90ba35a363c571&
https://cdn.discordapp.com/attachments/1375858599091241060/1375858599921979472/image.png?ex=683337ac&is=6831e62c&hm=e1e6ab2d3fdcf9c872ca28cc9e2fb14a6b358b43c06103bd309b7c8cc6597e87&
https://cdn.discordapp.com/attachments/1375858599091241060/1375858600349532423/image.png?ex=683337ac&is=6831e62c&hm=4e010533140b3a65c39ca7c19402b9d9e8abdb4f72ff2b02f2d59a7e12e8cc35&
https://cdn.discordapp.com/attachments/1375858599091241060/1375858600848789665/image.png?ex=683337ac&is=6831e62c&hm=390aaaab241ccbea1bc9d9bf433558cf7e9c89d5619abe0f3fb66f2d5860a7a5&
p
prehistoric-airplane-85682
05/26/2025, 8:35 PM
You can use the policy agent to enforce formatting rules. And the workflows exit variable can be accessed via workflow.Sub-workflowName.variableName and I recommend assigning it to a parent workflow variable via an execute code card.
Previous
Next