Can't store simple object created via Custom Javascript in any variable

In a custom JavaScript logic element, I define a simple object and output it. Then I set an App Variable to the output of the JavaScript node.


When I do this, nothing ends up being stored anywhere, so attempting to access the variable returns nothing.

So I guess my question is, how can I create an object with JavaScript and store it in a variable?


The issue is probably in the output, so your output is called result but you are returning config. So try changing the last line to return { result: config } :slight_smile:


Aha! Works now, thanks for the help

1 Like