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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

services,Query Implementing Things with Data

alenaromi
11-Garnet

services,Query Implementing Things with Data

Hi community,

 

Can someone send a code to write a custome wrapper service to invoke the Query Implementing Things with Data service.

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:alenaromi)

Hi @alenaromi.

 

Here's some very basic code:

 

var result =  ThingTemplates["GenericThing"].QueryImplementingThingsWithData({
    maxItems: undefined /* NUMBER */,
    nameMask: undefined /* STRING */,
    query: undefined /* QUERY */,
    tags: undefined /* TAGS */
});

 

This specific example for the "Generic Thing" thing template, but you can change it as needed.

 

Regards.

 

--Sharon

View solution in original post

2 REPLIES 2
slangley
23-Emerald II
(To:alenaromi)

Hi @alenaromi.

 

Here's some very basic code:

 

var result =  ThingTemplates["GenericThing"].QueryImplementingThingsWithData({
    maxItems: undefined /* NUMBER */,
    nameMask: undefined /* STRING */,
    query: undefined /* QUERY */,
    tags: undefined /* TAGS */
});

 

This specific example for the "Generic Thing" thing template, but you can change it as needed.

 

Regards.

 

--Sharon

Thank You.

Top Tags