# How can I extract payload 2? i need this value

**URL:** <https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757>\
**Category:** General\
**Created:** [12 March 2022 14:50 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757 "2022-03-12T14:50:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [12 March 2022 14:50 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/1 "2022-03-12T14:50:22Z")

</div>

msg : Object

object

topic: ""

name: "pippo"

\_messageId: "c56bdec6-8996-4917-8bd7-76ae6d58bac0"

\_endpointId: "40010"

\_confId: "4ea26487e9bb5891"

command: "AdjustBrightness"

extraInfo: object

payload: 2

acknowledge: true

\_msgid: "c082ada824e3e796"

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [12 March 2022 15:22 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/2 "2022-03-12T15:22:47Z")

</div>

That just looks like msg.payload.

How did you obtain the value of msg that you posted - a debug node?  
A debug node with the default settings should show you the value of msg.payload.  
What do you want to do with it once you have "extracted" it?

---

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [12 March 2022 15:27 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/3 "2022-03-12T15:27:39Z")

</div>

need to send value to a var of s7

---

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [12 March 2022 15:30 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/4 "2022-03-12T15:30:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/720d36da3818d01484166d7acef88b5c54cdc79f.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [12 March 2022 16:16 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/5 "2022-03-12T16:16:51Z")

</div>

Since you asked the question I guess that just sending the message to the s7 node does not work.

Sorry, I don't know anything about s7.

---

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [12 March 2022 16:18 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/6 "2022-03-12T16:18:22Z")

</div>

tx same have a good day

---

<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:** [11 May 2022 16:18 UTC](https://discourse.nodered.org/t/how-can-i-extract-payload-2-i-need-this-value/59757/7 "2022-05-11T16:18:29Z")

</div>

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