# Flow context question

**URL:** https://discourse.nodered.org/t/flow-context-question/4909
**Category:** General
**Created:** [15 November 2018 18:05 UTC](https://discourse.nodered.org/t/flow-context-question/4909 "2018-11-15T18:05:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)
#### Post date: [15 November 2018 18:05 UTC](https://discourse.nodered.org/t/flow-context-question/4909/1 "2018-11-15T18:05:37Z")

</div>

Is it possible to get the contents of a flow context entry without hard-coding the name? For example: In one function I am doing a `flow.set(name, {fields});` to populate a long list of flow variables with an object containing multiple properties. I would like to be able to query the variables dynamically based on messages coming into my function node so I can compare a state (whether a temp is within range or out of range,) compare timestamps, and then update the stored values.

---

<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: [15 November 2018 18:10 UTC](https://discourse.nodered.org/t/flow-context-question/4909/2 "2018-11-15T18:10:34Z")

</div>

The first argument to flow.get is the context property name. How you provide that name is up to you. Hardcoded `"foo"`, use `msg.topic`, use whatever you want that will evaluate to the property name as a string.

---

<div class="post-metadata">

### Author: ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)
#### Post date: [15 November 2018 18:21 UTC](https://discourse.nodered.org/t/flow-context-question/4909/3 "2018-11-15T18:21:05Z")

</div>

I'd tried that with no luck, then I dissected the flow leading into it after reading your post and found a mistake that was keeping the property I was passing as the trigger from flowing through. Working like a charm now, and I only feel a little stupid.
