Skip to main content
12-Amethyst
April 28, 2023
Solved

How To Get Thing Group Name from Thing

  • April 28, 2023
  • 1 reply
  • 2197 views

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  

 

Best answer by DanZ

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.

1 reply

19-Tanzanite
April 28, 2023

Hi @ParthBhadiyadra 

 

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

 

Velkumar_2-1682667541522.png

 

/VR

 

12-Amethyst
April 28, 2023

Hi,

 

I Need thinggroup name 

19-Tanzanite
April 28, 2023

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