# Subflow property as list

**URL:** <https://discourse.nodered.org/t/subflow-property-as-list/97472>\
**Category:** Feature Requests\
**Tags:** subflow\
**Created:** [8 June 2025 00:44 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472 "2025-06-08T00:44:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [8 June 2025 00:44 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/1 "2025-06-08T00:44:36Z")

</div>

Hi All,

Is there any way for us to make a list in the subflow property? I want to create a subflow property that allows the user to add rows consisting of two variables. I use this picture from the s7-endpoint node as an example.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/7484a8b9eef6611b6d90eba263ca32b160e2e042.png)

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [11 June 2025 19:38 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/2 "2025-06-11T19:38:55Z")

</div>

Are you looking for the "environment variable" tab of the subflow instance node?

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [18 June 2025 05:20 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/3 "2025-06-18T05:20:02Z")

</div>

Yes I want to make environment variable, but I want to input the property as a list

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [18 June 2025 06:13 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/4 "2025-06-18T06:13:17Z")

</div>

The subflow properties are static and deployed at runtime (deploy), i wish these could be dynamically populated, it would add a lot of flexibility.

As an alternative, you could add a template node before the subflow and pass the variables, something like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/369c493e1182da531f5beb29a8ee4b837aadff64.png)

This is formatted as 'parsed YAML', inside the subflow you can now these properties.

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [18 June 2025 06:54 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/5 "2025-06-18T06:54:25Z")

</div>

Yes I want to use static subflow property. However, I want to make the subflow property type as list. Is it possible? For now, I use JSON and jsonata as alternative

---

<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:** [18 June 2025 07:39 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/6 "2025-06-18T07:39:05Z")

</div>

What do you mean by a list? Do you mean an array?

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [18 June 2025 23:48 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/7 "2025-06-18T23:48:52Z")

</div>

Yes an array of object. For the example, I attached image of node-red-contrib-s7 config node above.

---

<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:** [20 June 2025 12:47 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/8 "2025-06-20T12:47:43Z")

</div>

Allow the property to be of type JSON then you can enter an array.

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [26 June 2025 07:12 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/9 "2025-06-26T07:12:44Z")

</div>

Yeah, currently I am using json and jsonata. However, I think it will be better if the input property just like node-red-contrib-S7, [GitHub - st-one-io/node-red-contrib-s7: A Node-RED node to interact with Siemens S7 PLCs](https://github.com/st-one-io/node-red-contrib-s7) . We can know the format of data when input the data and we can simply add the array members.

---

<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 June 2025 08:08 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/10 "2025-06-26T08:08:39Z")

</div>

> [@Aridzki](#):
>
> currently I am using json and jsonata

Why jsonata?

---

<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 June 2025 09:46 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/11 "2025-06-26T09:46:31Z")

</div>

> [@Aridzki](#):
>
> just like node-red-contrib-S7

i don't use that node, so don't know what format it uses. Do any of the core nodes have the format that you want?

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [30 June 2025 01:56 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/12 "2025-06-30T01:56:36Z")

</div>

I can't use array of objects what the type is JSON

---

<div class="post-metadata">

**Author:** ![Aridzki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aridzki/32/101254_2.png) [@Aridzki](https://discourse.nodered.org/u/Aridzki)\
**Post date:** [30 June 2025 01:59 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/13 "2025-06-30T01:59:06Z")

</div>

Sorry for using non common node. Actually, many core nodes, like inject node and change node, have property that I want. We can add the variable and type the variable name.

---

<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:** [30 June 2025 06:24 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/14 "2025-06-30T06:24:46Z")

</div>

Please give an example of this in an inject node.

---

<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:** [29 August 2025 06:25 UTC](https://discourse.nodered.org/t/subflow-property-as-list/97472/15 "2025-08-29T06:25:30Z")

</div>

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