# Passing (msg.payload) in exec node to a python script function

**URL:** <https://discourse.nodered.org/t/passing-msg-payload-in-exec-node-to-a-python-script-function/3200>\
**Category:** General\
**Created:** [17 September 2018 07:16 UTC](https://discourse.nodered.org/t/passing-msg-payload-in-exec-node-to-a-python-script-function/3200 "2018-09-17T07:16:57Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [2 December 2018 10:50 UTC](https://discourse.nodered.org/t/passing-msg-payload-in-exec-node-to-a-python-script-function/3200/14 "2018-12-02T10:50:32Z")

</div>

How can we possibly know what is not right if you don't show us what you are doing and tell us what happens (or doesn't happen)?  
Post a small flow showing your attempt, possibly an inject node to trigger it and then your nodes to call the script, plus the python script itself.  
A question though, where do you expect the script to print to?

For posting your flow see [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/3)

---

_[View the full topic](https://discourse.nodered.org/t/passing-msg-payload-in-exec-node-to-a-python-script-function/3200)._
