# Set Flow without using Function node

**URL:** <https://discourse.nodered.org/t/set-flow-without-using-function-node/3770>\
**Category:** General\
**Created:** [8 October 2018 00:57 UTC](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770 "2018-10-08T00:57:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatsupskip](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@whatsupskip](https://discourse.nodered.org/u/whatsupskip)\
**Post date:** [8 October 2018 00:57 UTC](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770/1 "2018-10-08T00:57:05Z")

</div>

If I understand correctly, the use of the Function Node should be avoided as it uses many resources.

What is the correct way to Set a Flow without using a Function Node?

I thought it could be done by using a Change Node, however when I tried it didn't work.

I tried using the Rule Set msg.payload to flow.DailyPumpTest.  
The message payload is coming from a Dashboard dropdown.  
Currently the output message from the Change Node is "undefined".

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 October 2018 01:25 UTC](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770/2 "2018-10-08T01:25:26Z")

</div>

Try the other way round. Set (the) flow.DailyPumpTest **TO** (the value of) msg.payload

---

<div class="post-metadata">

**Author:** ![whatsupskip](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@whatsupskip](https://discourse.nodered.org/u/whatsupskip)\
**Post date:** [8 October 2018 03:18 UTC](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770/3 "2018-10-08T03:18:56Z")

</div>

Yes, that will do it. Makes me look a bit silly.

Thank you for you timely help 🙂
