How to using environment variables in the subflow

Hello,
Two things:

  • please read this How to share code or flow json and edit your code above accordingly so that other people can import it.

  • secondly the right way is var yourvar = env.get("yourvar");. But as the environment variables in subflows are quite recent additions and the func-exec node you use hasn’t been updated in 1 1/2 years it could be that it doesn’t support it. Is there a reason you don’t use a combination of a normal function node and an exec node instead?

Johannes

2 Likes