Skip to main content
1-Visitor
March 8, 2017
Question

problem to getting The Thing through service?

  • March 8, 2017
  • 1 reply
  • 1514 views

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?

1 reply

5-Regular Member
March 8, 2017

Hi dinesh s​,

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

ds-211-VisitorAuthor
1-Visitor
March 8, 2017

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

5-Regular Member
March 8, 2017

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();