First off... I'm a newbie in pretty much all respects, I know a little about programming, but am struggling my way through as best as is possible... Be gentle with me...
I am trying to write a function/subflow to modify msg.payload.xxxxxx
xxxxxx I can set via the environment variables in the subflow template.
What I would like to do is use this environment variable in my subflow to set the "name extension" (I dont know what the correct term is) of the msg.payload... Best described, possibly by example, again, I am not the most learned where it comes to this, so please be patient with me!
Environment Variable Name: Fred and Fred's Contents: "Voltage"
I wish to: msg.payload."Fred" = 123.4 (in other words have msg.payload.Voltage = 123.4)
Is this possible?