# How to get Node unique identifier

**URL:** <https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790>\
**Category:** General\
**Created:** [29 June 2021 11:15 UTC](https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790 "2021-06-29T11:15:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran007](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kiran007](https://discourse.nodered.org/u/kiran007)\
**Post date:** [29 June 2021 11:15 UTC](https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790/1 "2021-06-29T11:15:46Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5acfbc3caf35b4ee4e788b2d475fa5271180f070.png)

I want to get this highlighted Node id in node js file how to achieve it?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [29 June 2021 12:26 UTC](https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790/3 "2021-06-29T12:26:57Z")

</div>

What problem are you trying to solve that you think you need this value?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 June 2021 12:31 UTC](https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790/4 "2021-06-29T12:31:18Z")

</div>

Assuming you mean for a node you are creating, then `this.id` will be its identifier.

---

<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:** [28 August 2021 12:31 UTC](https://discourse.nodered.org/t/how-to-get-node-unique-identifier/47790/5 "2021-08-28T12:31:20Z")

</div>

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