Template strings in subflow args

Learned the hard way I need to environmentalize url in node red today. I have a lot of http subflows which take URL string arg. Is it possible to mix in env vars here? For example ${MY_URL}/api/auth/login. This is a piece of cake in js, hopefully easy in nr too?

I guess one way is to do manual string replacements inside subflow.

Yes if you use the $ option, you can

  • if ${} is present, it will substitute the corresponding environment variable into the result: For example, given the value "Hello ${FOO}" and the env var FOO is set to World, this results in the value "Hello World"
1 Like

Fantastic! Onto further improvements :smiley: Had a case today where an url went down, and without env variable it was too much hassle to change url everywhere. But next time, it will be a breeze.