cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

GetPropertyDefinations in ThingTemplate

Avinash_Shukla
5-Regular Member

GetPropertyDefinations in ThingTemplate

Avinash_Shukla_0-1694004539266.png

I created a couple of properties in a ThingTemplate and I wanted to retrieve them using the service "GetPropertyDefinations" but there is no data in a result . so how  can I retrieve the Property names from ThingTemplate?

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Can you please try 

// result: INFOTABLE dataShape: "PropertyDefinition"
let result = ThingTemplates["GenericThing"].GetInstancePropertyDefinitions({
type: undefined /* STRING */
});

 

ashaban_0-1694011940146.png

 

View solution in original post

2 REPLIES 2

Can you please try 

// result: INFOTABLE dataShape: "PropertyDefinition"
let result = ThingTemplates["GenericThing"].GetInstancePropertyDefinitions({
type: undefined /* STRING */
});

 

ashaban_0-1694011940146.png

 

Avinash_Shukla
5-Regular Member
(To:ashaban)

I appreciate the solution provided, but my specific need entails filtering the properties after acquisition, primarily based on their category or multiple base types.

Top Tags