I have a workflow that is triggered from another workflow and is running successfully , however the response from the triggered workflow is showing an empty data object after running.
How do you access the data from the completed workflow in the original workflow?
Hi @ehe , I am running into the same problem as the OP. Can you elaborate on your suggestion please?
I looked at response blocks but they are documented as responses to webhooks? I didn't know if that was the same concept as you are referring to.
In any event, I tried adding the response, with the "body" just having the previousStep.data, but I still see an empty object as the result in the "parent" workflow.
Hi, @ghost-ap - not sure if OP solved the issue but I will try to explain the solution to his problem. To add to @ehe 's comment: it looks like TestWorkflow (the child workflow) isn’t returning any data because there’s no Response block. Without it, workflow1 (the parent workflow) receives an empty object. Try adding a Response block at the end of TestWorkflow, setting the "Body" to return {{ code1.data }}. This should ensure workflow1 gets the expected data!
Hi @Bob_Engelen , I did try that (see the last part of the message). I am even trying to send back hardcoded data (similar to the placeholder JSON in the body field) and am still seeing an empty object.
Hi @Paulo - thanks for the response. That was indeed one of the issues. However, now I'm seeing one of the child workflows still fail, even though the child runs ok on its own. The child wf has both non-error and error response blocks.