# How to import a value from another function

**URL:** https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373
**Category:** General
**Tags:** function-node
**Created:** [21 October 2022 11:27 UTC](https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373 "2022-10-21T11:27:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rush\_cs](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rush_cs/32/69509_2.png) [@rush\_cs](https://discourse.nodered.org/u/rush_cs)
#### Post date: [21 October 2022 11:27 UTC](https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373/1 "2022-10-21T11:27:47Z")

</div>

How do I use a value from another function within the flow in my current function. I am very new to node-red 😃

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [21 October 2022 12:03 UTC](https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373/2 "2022-10-21T12:03:32Z")

</div>

There is extensive documentation available

[https://nodered.org/docs/user-guide/writing-functions](https://nodered.org/docs/user-guide/writing-functions)

See the section about context

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [21 October 2022 12:41 UTC](https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373/3 "2022-10-21T12:41:41Z")

</div>

> [@rush\_cs](#):
>
> How do I use a value from another function within the flow in my current function.

Pass the value in a message from one function to the next.

> [@rush\_cs](#):
>
> I am very new to node-red

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<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: [20 December 2022 12:42 UTC](https://discourse.nodered.org/t/how-to-import-a-value-from-another-function/69373/4 "2022-12-20T12:42:17Z")

</div>

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