In my function i want to have access to other variables. I want to send a string to my function without connecting it. In the inject node is a string "Axel" and I send this to a change node en change the msg. to flow.name. How do I access this variable in the Function?
At the moment your change node is setting msg.payload to the value of flow.name. If you meant to set flow.name to the value of msg.payload you need to swap around those to fields in the Change node.