GetPropertyDefinations in ThingTemplate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
GetPropertyDefinations in ThingTemplate
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?
Solved! Go to Solution.
- Labels:
-
Troubleshooting
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you please try
// result: INFOTABLE dataShape: "PropertyDefinition"
let result = ThingTemplates["GenericThing"].GetInstancePropertyDefinitions({
type: undefined /* STRING */
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you please try
// result: INFOTABLE dataShape: "PropertyDefinition"
let result = ThingTemplates["GenericThing"].GetInstancePropertyDefinitions({
type: undefined /* STRING */
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I appreciate the solution provided, but my specific need entails filtering the properties after acquisition, primarily based on their category or multiple base types.
