I am working on making changes to flows that have no be changed or ran since summer if last year. Back then I had heavily made use of msg.something = something in function nodes. I am changing to make to the code but something is working.
Where is like what I have in the node from back then
msg.TalkID = msg.payload[0].TalkID.toString();
This would set msg.TalkID to what was returned from mysql.
In testing I have even tried msg.TalkID = 1; and cant not get it to set.
TLDR has something changed in nodered that will not let me set msg.something if so what is the work around.
Can you paste the code from your function node in a reply. Also connect a debug node to the output of what ever is feeding the function and show us what the msg entering the function node looks like.
In your flow, you have the debug node set to msg only instead of complete msg object.
If I change it to show the complete msg object, I see this in the debug sidebar. Is this what you expected to see?
If not, what did you expect to see?