# Iterate subflow properties

**URL:** <https://discourse.nodered.org/t/iterate-subflow-properties/86779>\
**Category:** General\
**Tags:** subflow\
**Created:** [26 March 2024 17:24 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779 "2024-03-26T17:24:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 March 2024 17:24 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779/1 "2024-03-26T17:24:45Z")

</div>

Is the set of subflow properties available inside the subflow? It would be helpful if I could access the property env var names as an array of keys or similar in a function node. I need to load all the env var keys and values into a message property in order to pass them to a Dashboard 2 ui-template for access in the browser.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2024 11:42 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779/2 "2024-03-28T11:42:42Z")

</div>

I guess this is not possible since no-one has volunteered a solution.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 March 2024 12:49 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779/3 "2024-03-28T12:49:15Z")

</div>

Hi Colin, no, unlike context, there is not a helper function for enumerating keys.

I dont think having this (for subflows) would be a risk (security wise) but it would need to be scoped to the parent/owner subflow instance only.

Lets see if Nick or Dave comments and perhaps this (or something that facilitates this) could be made into a Feature Request.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2024 13:25 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779/4 "2024-03-28T13:25:45Z")

</div>

OK, thanks Steve. For me this is (hopefully) a short term requirement only, as I believe it is intended that an automatic way of accessing subflow properties from a ui-template will be provided at some point. So maybe not worth worrying about at the moment.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 June 2024 13:26 UTC](https://discourse.nodered.org/t/iterate-subflow-properties/86779/5 "2024-06-26T13:26:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
