# Create new property

**URL:** https://discourse.nodered.org/t/create-new-property/15026
**Category:** General
**Created:** [2 September 2019 09:12 UTC](https://discourse.nodered.org/t/create-new-property/15026 "2019-09-02T09:12:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LazzaWA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lazzawa/32/10616_2.png) [@LazzaWA](https://discourse.nodered.org/u/LazzaWA)
#### Post date: [2 September 2019 09:12 UTC](https://discourse.nodered.org/t/create-new-property/15026/1 "2019-09-02T09:12:39Z")

</div>

hi all, im sure this is a rookie question but...

why is it when i sometimes try to create a new property such as the below screen shot that the new property doesn't get created ?

Im using a change node to create a " msg.payload.data.entity\_id " property from the topic but as you can see from the debug screen it doesn't

 ![noNewProperty](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8af9b34e40984194d3f8fc2e2ddaea4f317b836f.png) get created and as a newbie i'm not sure why/

Appreciate your guidance to probably a simply question

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [2 September 2019 09:21 UTC](https://discourse.nodered.org/t/create-new-property/15026/2 "2019-09-02T09:21:04Z")

</div>

msg.payload can’t be a variable and an object at the same time.

So you rules can’t work as you want.

If you wanted msg.payload to be an object you can use the `move` option to move msg.payload to msg.payload.whatever and then set other properties of the msg.payload object

---

<div class="post-metadata">

### Author: ![LazzaWA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lazzawa/32/10616_2.png) [@LazzaWA](https://discourse.nodered.org/u/LazzaWA)
#### Post date: [2 September 2019 09:38 UTC](https://discourse.nodered.org/t/create-new-property/15026/3 "2019-09-02T09:38:24Z")

</div>

thanks for that ukmoose. as per below i did my best at interpreting what you said and got it working as intended so that's awesome thanks. I will now do some research to actually get my head around why it worked.. IE: research differences between objects and variables etc 🙂

 ![noNewProperty2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c14e1a636ae111e3ae9a86f403184c46a22006d8.png)

cheers

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [2 September 2019 09:40 UTC](https://discourse.nodered.org/t/create-new-property/15026/4 "2019-09-02T09:40:49Z")

</div>

No probs, an understanding of javascript objects and arrays (and variables) is very useful for Node-RED.
