Sorry to ask again, I can't find my original post

What is the trick to access global variables form within a change node?

I was wanting to do maths things to it and so to simply set/get it I would then need a function node, but someone posted me how to do it.

I seem to remember it was in the J: part of the change node.

But I have tried searching the flows and couldn't find it so I tried searching for my question and (alas) also couldn't find it.

Sorry folks.

In a JSONata Expression you can do $globalContext("FOO")

1 Like


I don't think that was how I was shown.

It looked something like:

J: for the type of entry in the line. Then something like:
{("")} * 3

But as I am not sure for what it is I am searching, it makes it difficult to search the flows.

Will a search search in a change node for stuff typed?

Found it!

This is how I was shown.

[{"id":"843af767.23caa8","type":"switch","z":"9b7e7466.a4b698","d":true,"name":"EXTREME HEAT 1","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"$globalContext(\"Shutdown_temperature\")-10","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":1865,"y":340,"wires":[["5da5a554.5275ac"]]}]

Ok, the node is disabled. But that is how it was shown to me.

Sorry for not remembering.

Actually you probably are/were right. I just didn't see it as it would be shown in the node.

Thanks again though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.