# Is there a way to allow for the msg. / flow. / global. input types for subflows?

**URL:** https://discourse.nodered.org/t/is-there-a-way-to-allow-for-the-msg-flow-global-input-types-for-subflows/31530
**Category:** Developing Nodes
**Created:** [13 August 2020 13:52 UTC](https://discourse.nodered.org/t/is-there-a-way-to-allow-for-the-msg-flow-global-input-types-for-subflows/31530 "2020-08-13T13:52:33Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [13 August 2020 14:21 UTC](https://discourse.nodered.org/t/is-there-a-way-to-allow-for-the-msg-flow-global-input-types-for-subflows/31530/3 "2020-08-13T14:21:13Z")

</div>

Hi @MrRosenkilde, as Nick has stated, by design this is not possible with subflows. I use another node that gives you _subroutine_ like functionality where you can pass values in via `msg`, `flow`, `global` etc. I provided some feedback [here](https://discourse.nodered.org/t/thoughts-on-this-new-node-node-red-contrib-components/30279/7) when another user raised a question on its usefulness.

Its not quite a subflow but perhaps it will work for your current requirement?

---

_[View the full topic](https://discourse.nodered.org/t/is-there-a-way-to-allow-for-the-msg-flow-global-input-types-for-subflows/31530)._
