# Subflows & environment variables?

**URL:** <https://discourse.nodered.org/t/subflows-environment-variables/10782>\
**Category:** General\
**Created:** [3 May 2019 15:01 UTC](https://discourse.nodered.org/t/subflows-environment-variables/10782 "2019-05-03T15:01:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![JesseWebDotCom](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@JesseWebDotCom](https://discourse.nodered.org/u/JesseWebDotCom)\
**Post date:** [3 May 2019 15:39 UTC](https://discourse.nodered.org/t/subflows-environment-variables/10782/5 "2019-05-03T15:39:04Z")

</div>

Thanks for the quick response. Seems like my needs correspond to this thread:

> [@Shared subflow context](https://discourse.nodered.org/t/shared-subflow-context/3596/9):
>
> I think I was not clear at first. I don't ask for a flow and a subflow to share the flow context. I don't ask for a subflow to share his flow context with other subflows. It would be a new context called... static\_subflow. It's like static variables of a class X. If you instaciate multiple time the class X, they will all have their own private properties, but they also share static variables. I'd like to see to same for subflows. All instances of a subflow would have their own flow context,…

I guess I'll just put data I need to transfer into subflows under msg.subflow until a common mechanism or standard arises. Thanks again

---

_[View the full topic](https://discourse.nodered.org/t/subflows-environment-variables/10782)._
