Use credentials from env from the subflow

Hello,
credentials can now be specified in the environment variables of the subflows. How must my self-created node be structured so that these credentials can be taken from the ENV of the subflow?

Is there any possibility at all, or can this only be controlled via source code in the node? So that whenever the env xy is set, these credentials should be used?

I have used my own node more than 10 times in a subflow. Some of these have different credentials. How can I assign the correct credentials from the env to the node instances?

In the field for setting the credential you can use ${xy} where xy is the name of the subflow variable. See Using environment variables : Node-RED

1 Like