# How to get Function's msg within a Template script?

**URL:** <https://discourse.nodered.org/t/how-to-get-functions-msg-within-a-template-script/69998>\
**Category:** General\
**Created:** [3 November 2022 04:45 UTC](https://discourse.nodered.org/t/how-to-get-functions-msg-within-a-template-script/69998 "2022-11-03T04:45:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 November 2022 08:35 UTC](https://discourse.nodered.org/t/how-to-get-functions-msg-within-a-template-script/69998/3 "2022-11-03T08:35:39Z")

</div>

How is this different from [Get msg.payload from Template's script tag](https://discourse.nodered.org/t/get-msg-payload-from-templates-script-tag/69990)?

As they seem to be the same, I will close this thread. If they are in fact different, you can reopen the thread and explain the difference.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-get-functions-msg-within-a-template-script/69998)._
