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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

problem to getting The Thing through service?

ds-21
1-Newbie

problem to getting The Thing through service?

Hi,

var params = {

  maxItems: undefined /* NUMBER */,

  nameMask: undefined /* STRING */,

  query: undefined /* QUERY */,

  thingTemplate: "Vehicle"/* THINGTEMPLATENAME */,

  tags: undefined /* TAGS */

};

// result: INFOTABLE dataShape: RootEntityList

var result = Resources["SearchFunctions"].SearchThingsByTemplate(params);

I am using above service to collect all thing which is implemented through the template.i am able to get things. but i am not able to get all the thing which is implemented by the template.

can any one help me?

3 REPLIES 3
ankigupta
5-Regular Member
(To:ds-21)

Hi dinesh s​,

Does the user running the Service have visibility Permission to the Things which are not showing up in the result?

hi Ankit,

      i am login through  Administrator. actually i am not getting around few things which i was implemented through the template.

Is any other reason is there. am not getting...

thanks

Dinesh

ankigupta
5-Regular Member
(To:ds-21)

dinesh s​,

I just tested it on my local Instance 7.3.2 and it worked fine.

Could you please answer following:

1. Is there any difference (Permissions/Tags/Project etc) in the Thing which shows and the Thing which does not show?

2. Any details/error in Application/Script logs.

3. Try using GetImplementingThings Service.

Example: var result = ThingTemplates["YourThingTemplateHere"].GetImplementingThings();

Top Tags