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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

problem to getting The Thing through service?

ds-21
7-Bedrock

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
12-Amethyst
(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?

ds-21
7-Bedrock
(To:ankigupta)

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

Announcements


Top Tags