# Send variable to subflow

**URL:** <https://discourse.nodered.org/t/send-variable-to-subflow/58203>\
**Category:** General\
**Created:** [12 February 2022 09:55 UTC](https://discourse.nodered.org/t/send-variable-to-subflow/58203 "2022-02-12T09:55:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [12 February 2022 09:55 UTC](https://discourse.nodered.org/t/send-variable-to-subflow/58203/1 "2022-02-12T09:55:08Z")

</div>

I have a subflow which requires to enter an env variable, like this:

 ![Schermata 2022-02-12 alle 10.51.03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a59618cec2ca583441e44be908ef67754f28a78.png)

Is there a way to send the variable "Playlist uri" from a node instead of manually?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 February 2022 10:46 UTC](https://discourse.nodered.org/t/send-variable-to-subflow/58203/2 "2022-02-12T10:46:40Z")

</div>

can you not send the uri in a msg.property, then in your subflow check if msg.property is defined and if so use that, else use the env.get variable

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [12 February 2022 11:30 UTC](https://discourse.nodered.org/t/send-variable-to-subflow/58203/3 "2022-02-12T11:30:55Z")

</div>

Yes, thanks. I will do that way.

---

<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 February 2022 11:31 UTC](https://discourse.nodered.org/t/send-variable-to-subflow/58203/4 "2022-02-26T11:31:05Z")

</div>

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