# Change field name

**URL:** <https://discourse.nodered.org/t/change-field-name/25858>\
**Category:** General\
**Created:** [1 May 2020 10:43 UTC](https://discourse.nodered.org/t/change-field-name/25858 "2020-05-01T10:43:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas58](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@andreas58](https://discourse.nodered.org/u/andreas58)\
**Post date:** [1 May 2020 10:43 UTC](https://discourse.nodered.org/t/change-field-name/25858/1 "2020-05-01T10:43:37Z")

</div>

How can I turn a field name into a payload?

I have a LoraWan node that sends GPS coordinates via TTN to Cayenne. I want to use the same payload also in Node-red but to do so I need to change the field names latitude and longitude to lat and lon.

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [1 May 2020 10:54 UTC](https://discourse.nodered.org/t/change-field-name/25858/2 "2020-05-01T10:54:17Z")

</div>

Hello,  
you can use a change node to move values from one msg property to another.  
So use a change node that has something like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b4770ba8cf4777b51ceb9de2f8979e635ce6ebae.jpeg)

Johannes

---

<div class="post-metadata">

**Author:** ![andreas58](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@andreas58](https://discourse.nodered.org/u/andreas58)\
**Post date:** [1 May 2020 12:19 UTC](https://discourse.nodered.org/t/change-field-name/25858/3 "2020-05-01T12:19:53Z")

</div>

Thanks, so simple. I was using Change...

---

<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:** [30 June 2020 12:19 UTC](https://discourse.nodered.org/t/change-field-name/25858/4 "2020-06-30T12:19:55Z")

</div>

Closed on 30 June 2020 12:19 UTC

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