# Custom node with values from global

**URL:** <https://discourse.nodered.org/t/custom-node-with-values-from-global/44977>\
**Category:** Developing Nodes\
**Created:** [30 April 2021 09:49 UTC](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977 "2021-04-30T09:49:39Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [4 May 2021 13:21 UTC](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977/21 "2021-05-04T13:21:01Z")

</div>

> [@jake123](#):
>
> It says fetch is not defined

`fetch` is not a built in function of the node.js runtime. You will need to add a node module to use it - for example [node-fetch - npm](https://www.npmjs.com/package/node-fetch)

---

<div class="post-metadata">

**Author:** ![jake123](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jake123](https://discourse.nodered.org/u/jake123)\
**Post date:** [4 May 2021 13:25 UTC](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977/22 "2021-05-04T13:25:13Z")

</div>

Thank you, works like a charm!

---

<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:** [18 May 2021 13:25 UTC](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977/23 "2021-05-18T13:25:17Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977.md?page=1)
