Passing an array to Entry Workflow

On the “End” node of the child work flow I’ve passed {{variable}} and {{json variable}}.

The child is generating the array, but as you can see what I get in the Entry flow is this:

I can see it being done the same way in examples and I don’t want to spend the next 12 hours back and forth with Grok ;). Who has a clue what I’m doing wrong. What else do you need to see. It’s not that complex

Output is:

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Okay, after spending hours looking at things I finally got the diagnostics tool to recognize the problem. Apparently, I needed to use a handlebar on the receiving end as well, which fixed it, e.g., {{json myvariable}} seems to be required on both sides

Correct, if you are passing JSON across workflows you will need to stringify it using the {{json variableName}} handlebars helper, otherwise the templating language will see that it’s a list and try to do you a favor by rendering it—which doesn’t work when it’s a list of JSON objects.

This is an area we are working on to try to make it less confusing, so please bear with us for the moment!

1 Like