Skip to main content
12-Amethyst
Apr 28, 2023 7:02 AM UTC
Solved

How To Get Thing Group Name from Thing

Hello,

 

How to get the Thing group name from the thing. In my project, every thing assign to a specific thing group. now I want to get a thing group name using a thing  

 

DanZAnswer
15-Moonstone
May 29, 2023 8:36 PM UTC

I suggest creating a Network rather than using ThingGroups for this process. With that you can simply get the parent of a specific Thing. This "parent" itself can be a simple generic Thing that represents the company and contains properties like the e-mail adress for the mentioned notifications.

7 replies

19-Tanzanite
Apr 28, 2023 7:32 AM UTC

Hi @ParthBhadiyadra 

 

You can use 'GetMembers' service to get Thing Name from Thing Group 

 

Velkumar_2-1682667541522.png

 

/VR

 

Translate
12-Amethyst
Apr 28, 2023 7:34 AM UTC

Hi,

 

I Need thinggroup name 

Translate
19-Tanzanite
Apr 28, 2023 7:52 AM UTC

Hi @ParthBhadiyadra 

 

I don't know if there is any direct way to get Thing Group from the Thing level 

 

As a workaround, you can use the 'GetWhereUsed' service to get a thing relationship with any Thing Group

Velkumar_1-1682668274009.png

 

You can further filter this InfoTable based on EntityType  to get ThingGroups details alone

 

/VR

 

Translate