I have looked around but found nothing that answer my situation.
I want to setup a global variable. The value of the variable will come from the msg.payload BUT, the element name (key) will be dynamically build like so:
That is assuming that the global variable is "environment" not global.environment. It would probably not be a good idea to have a global variable called global, that would surely be confusing.
Thanks for your reply but the concatenation doesn't need to be with the value of msg.payload.ConnectServerUrl but rather to define/name the element/key ConnectServerUrl like so: msg.payload.ConnectServerUrl-DEV msg.payload.ConnectServerUrl-TEST msg.payload.ConnectServerUrl-PROD
The -DEV or -TEST or -PROD will come from another global variable name environment.
I am looking for a way to dynamically set the name of the key in the msg.payload