# Add msg.payload to an Payload in a Function Node

**URL:** <https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407>\
**Category:** General\
**Created:** [15 February 2022 16:35 UTC](https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407 "2022-02-15T16:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zyan](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zyan](https://discourse.nodered.org/u/Zyan)\
**Post date:** [15 February 2022 16:35 UTC](https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407/1 "2022-02-15T16:35:37Z")

</div>

Hello Guys

i have an Function Node :

```auto
msg.payload = "export DISPLAY=:0 && /usr/bin/chromium {msg.payload} --start-fullscreen --kiosk"
return msg;

```

and at the Point {msg.payload} i wanne add the payload that comes in the Function Node

In the Picture Below is the input that should apear at {msg.payload} .  
I want to send website links from my phone via Telegram direct to my Chromium Browser on my Linux Pc

Thx for Help  
 ![snip](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c46f77483ef91168e98de9410ba76eb59efadf3.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [15 February 2022 16:36 UTC](https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407/2 "2022-02-15T16:36:58Z")

</div>

```auto
msg.payload = "export DISPLAY=:0 && /usr/bin/chromium " + msg.payload + " --start-fullscreen --kiosk"
return msg;

```

---

<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:** [15 February 2022 21:27 UTC](https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407/3 "2022-02-15T21:27:01Z")

</div>

Or

```auto
msg.payload = `export DISPLAY=:0 && /usr/bin/chromium ${msg.payload} --start-fullscreen --kiosk`
return msg;

```

---

<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:** [1 March 2022 21:27 UTC](https://discourse.nodered.org/t/add-msg-payload-to-an-payload-in-a-function-node/58407/4 "2022-03-01T21:27:34Z")

</div>

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