In the config node node-red-contrib-config
, I have set properties:
I would like to get these properties in the Function
node but an error occurred while trying to execute the following commands:
// 1."ReferenceError: localFilePath is not defined (line 2, col 23)"
var path = global.get(localFilePath);
// 2."TypeError: Cannot read property 'get' of undefined"
var path = msg.global.get(localFilePath);
// 3."TypeError: Cannot read property 'getNode' of undefined"
var path = RED.nodes.getNode(config.localFilePath);
Inside Function
node can I get property of config
node?
Can you please suggest way how can I do this?
Any hint will be great.
Thanks.