Skip to main content
Oct 13, 2020 5:55 AM UTC
Solved

and Thing Template

Hi ,

    In ThingWorx , any snippet is available to get the list of Thing Template and Thing names .

 

Thanks In Advance.

Oct 13, 2020 7:05 AM UTC
Snippet is:
var params = {
maxItems: undefined /* NUMBER */,
nameMask: undefined /* STRING */,
type: "Thing" /* STRING */,
tags: undefined /* TAGS */
};

// result: INFOTABLE dataShape: RootEntityList
var result = Resources["EntityServices"].GetEntityList(params);

5 replies

Oct 13, 2020 7:03 AM UTC

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

Oct 13, 2020 7:05 AM UTC
Snippet is:
var params = {
maxItems: undefined /* NUMBER */,
nameMask: undefined /* STRING */,
type: "Thing" /* STRING */,
tags: undefined /* TAGS */
};

// result: INFOTABLE dataShape: RootEntityList
var result = Resources["EntityServices"].GetEntityList(params);
Saranya_SAuthor
Oct 13, 2020 7:14 AM UTC

Thanks for the quick updated and the snippet doesn't display the thing template for each thing so how to achieve this. 

Oct 26, 2020 4:26 PM UTC

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