Subflow property as list

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.

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

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

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

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

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

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

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

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

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 . We can know the format of data when input the data and we can simply add the array members.

Why jsonata?

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?

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

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.

Please give an example of this in an inject node.

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