and Thing Template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
and Thing Template
Hi ,
In ThingWorx , any snippet is available to get the list of Thing Template and Thing names .
Thanks In Advance.
Solved! Go to Solution.
- Labels:
-
Best Practices
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
var params = {
maxItems: undefined /* NUMBER */,
nameMask: undefined /* STRING */,
type: "Thing" /* STRING */,
tags: undefined /* TAGS */
};
// result: INFOTABLE dataShape: RootEntityList
var result = Resources["EntityServices"].GetEntityList(params);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
If you are asking how to get the list of Templates or Things from Thingworx, you can use Resources > EntityServices > GetEntityList service, using Type = Thing or Type=ThingTemplate.
Hope it helps,
Raluca Edu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
var params = {
maxItems: undefined /* NUMBER */,
nameMask: undefined /* STRING */,
type: "Thing" /* STRING */,
tags: undefined /* TAGS */
};
// result: INFOTABLE dataShape: RootEntityList
var result = Resources["EntityServices"].GetEntityList(params);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks for the quick updated and the snippet doesn't display the thing template for each thing so how to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
To get the template for each thing, you can use the GetThingTemplate service:
result = me.GetThingTemplate();
Hope it helps,
Raluca Edu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Saranya_S.
If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Thank you for your participation in our community.
Regards.
--Sharon
