WORKFLOW: Cannot get result of Code node function
Hey,
Don't know if this has already been discussed but I didn't find any related issue. I struggle to get the return value of the Code node in my workflow. For the context, I have objects with relations in my data model, and I am trysing to get object B from object A. It is apparently not possible to do that using the Workflow node themselves (object B does not even appear in object A, neither its id) so I am trying to get it through a Code node.
My workflow looks like the first joined picture. For some reason, I cannot get the return of the GetCompanyId function, whatever node follows (see picture 2: the actual dummy code, and 3: what I get when I try to use a variable from the Code node).
What am I doing wrong ? Also, is there something planned to ease the retrieval of objects through relations ? Because these kind of limitation are very frustrating since imo it is the purpose of the workflow itself to allow these kind of manipulation.
That said, just wanted to say that I actually really enjoy twenty and am very impressed by the actual product and by what is planned in the future :).
Thanks in advance for the help !
Don't know if this has already been discussed but I didn't find any related issue. I struggle to get the return value of the Code node in my workflow. For the context, I have objects with relations in my data model, and I am trysing to get object B from object A. It is apparently not possible to do that using the Workflow node themselves (object B does not even appear in object A, neither its id) so I am trying to get it through a Code node.
My workflow looks like the first joined picture. For some reason, I cannot get the return of the GetCompanyId function, whatever node follows (see picture 2: the actual dummy code, and 3: what I get when I try to use a variable from the Code node).
What am I doing wrong ? Also, is there something planned to ease the retrieval of objects through relations ? Because these kind of limitation are very frustrating since imo it is the purpose of the workflow itself to allow these kind of manipulation.
That said, just wanted to say that I actually really enjoy twenty and am very impressed by the actual product and by what is planned in the future :).
Thanks in advance for the help !


