# Subflow context (flow)

**URL:** https://discourse.nodered.org/t/subflow-context-flow/11534
**Category:** General
**Created:** [25 May 2019 11:21 UTC](https://discourse.nodered.org/t/subflow-context-flow/11534 "2019-05-25T11:21:01Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 May 2019 11:37 UTC](https://discourse.nodered.org/t/subflow-context-flow/11534/2 "2019-05-25T11:37:01Z")

</div>

The nodes in a subflow can use flow context, bit it is scoped to the nodes in the subflow, not the flow the instance of the subflow is on.

If you are on 0.20, then the nodes in the subflow can access the parent flow context. If you have a flow context variable called `foo` then the nodes in a subflow can use `$parent.foo` to access it.

---

_[View the full topic](https://discourse.nodered.org/t/subflow-context-flow/11534)._
