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.


chrome_Yf7lbyHuYW

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?

Hey,

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:

2 Likes

Aha! Works now, thanks for the help

1 Like