# How to get the msg.properties.path value

**URL:** <https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494>\
**Category:** General\
**Tags:** function-node\
**Created:** [28 August 2024 00:48 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494 "2024-08-28T00:48:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)\
**Post date:** [28 August 2024 00:48 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494/1 "2024-08-28T00:48:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d7869d565fb1606e24f4889b097a7f6ca2f1ce83.png)  
how to use the function node to get the value of the msg.properties.path.

i try this ['L1', 'Lighting', payload["/Favorites/L1\_KW/Total\_kW"]], but fail.

Thank you

---

<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:** [28 August 2024 01:11 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494/2 "2024-08-28T01:11:07Z")

</div>

> [@tcsjohnson](#):
>
> I try this ['L1', 'Lighting', payload["/Favorites/L1\_KW/Total\_kW"]]

Should it be like this?

```auto
['L1', 'Lighting', msg.payload["/Favorites/L1_KW/Total_kW"]]

```

---

<div class="post-metadata">

**Author:** ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)\
**Post date:** [28 August 2024 01:12 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494/3 "2024-08-28T01:12:05Z")

</div>

['L1', 'Lighting', {{payload./Favorites/L1\_KW/Total\_kW}}]

I use this can read it.

---

<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:** [28 August 2024 01:18 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494/4 "2024-08-28T01:18:26Z")

</div>

Looks more like a template node than a function. 😀

I moved your post to the General category, You don't seem to be developing a node.

---

<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:** [27 October 2024 01:18 UTC](https://discourse.nodered.org/t/how-to-get-the-msg-properties-path-value/90494/5 "2024-10-27T01:18:55Z")

</div>

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