How can I add a property input to a subflow, like this?
![]()
Thanks in advance.
Welcome to the forum @charcuterie ![]()
I'm not entirely sure what you are asking but -
If you want to pass messages into a subflow then you need to have an input, clicking on the 1 next to inputs will create an input node on the subflow which can receive incoming messages.
If however you mean, create properties which can then be populated by unique values per subflow instance then you need to click on edit properties.
These are fixed values, they can be text, number etc but not msg properties as these are received via the input
Hi!
What I meant was, similar to the change, template, etc. nodes in the configuration menu, you can select a message property for the node to operate on. I guess Node-RED lacks this feature for subflows, and I'll have to just take a string input, and index msg with it.
Thanks for your help anyways.
OK now I understand.
Yes you could create a property variable and set to the required string. The best approach really depends on what you are trying to do.
You may want to take a look at link return nodes, as this provides a subflow like way to reuse code with only 1 instance required. You could easily pass the required property in the msg.

