# Select Input Type in Subflow

**URL:** <https://discourse.nodered.org/t/select-input-type-in-subflow/39871>\
**Category:** General\
**Created:** [27 January 2021 14:20 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871 "2021-01-27T14:20:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [27 January 2021 14:20 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871/1 "2021-01-27T14:20:54Z")

</div>

Hello there. I was working with subflow properties. where i can pass my env variable to the function node. but for each device id, I have to write its ID in text input. So I choose the **"select input type"** instead of text.

Now can I put the device id in that select input type box from the database? so that it can automatically show me all device id.

because if I want to have 100 devices. it will take time to add that type of device in Lable and Value.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/d/cd3c8c7a245292cbfb7ba13088be318e98ac5b6f.png)

---

<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:** [27 January 2021 14:23 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871/2 "2021-01-27T14:23:50Z")

</div>

Hi @pranavthakkar

no, there is no built-in way to dynamically generate that list of options. You are getting into custom-node territory rather than subflows.

---

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [27 January 2021 14:29 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871/3 "2021-01-27T14:29:33Z")

</div>

hi @knolleary. I was reading the doc of subflow.

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

**using an environment variable to identify which type of record should be accessed**

I don't what this line meant. is that similar to my issue?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 January 2021 21:09 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871/4 "2021-01-27T21:09:31Z")

</div>

All you need do if you have multiple id's is to put the id onto the incoming msg. Then you can have logic in your sub-flow to deal with the different ids.

---

<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 March 2021 05:42 UTC](https://discourse.nodered.org/t/select-input-type-in-subflow/39871/6 "2021-03-29T05:42:25Z")

</div>

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