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

Not listing the one of RemoteThing using GetImplementingThings() service

SOLVED
vi1
Level 8

Not listing the one of RemoteThing using GetImplementingThings() service

Hi,

 

I am using the below service in ThingWorx. its not listing one of RemoteThing using the below service.

but RemoteThing is available if I go physically. Also, listing remaining RemoteThings.

Could you suggest why it is not listing one of RemoteThing using this service. I have enabled RemoteThing

 

var allRemoteThings = ThingTemplates["RemoteThing"].GetImplementingThings();

 

Thanks&Regards,

latha

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Please use QueryImplementingThings service.

by default I didn't see that parameter associated with GetImplementingThings so likely it doesn't support it.

7 REPLIES

Re: Not listing the one of RemoteThing using GetImplementingThings() service

How many things do you have that implement that Template?

What is the name of the Thing?

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Thanks for reply.

 

We have more than 600 RemoteThings using the same Template "RemoteThing"

Thing name is "Rxxxx_xx_xxxxx". All the remote thing names are followed same naming convention.

 

Regards,

Latha

 

 

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Are you setting maxItems to be larger than 600? Is it possible you are doing the default call and you are only getting 500 items back?

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Hi,

 

I did not set maxItems in the below service.

 

var allRemoteThings = ThingTemplates["RemoteThing"].GetImplementingThings();

 

If we use the above service, we are not getting the all the remote things.

Totally we have 608 RemoteThings. If we use the above service, its listing the 500 RemoteThings

 

Thank You

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Pretty sure you can use the maxItems param with both Get and Query but here is the snippet that shows the use

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

 

 

Highlighted

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Hi,  

Thanks for Reply.

 

If we use QueryImplementingThings, listing the all the remote things.

If we use .GetImplementingThings, its listing the maximum 500 remote things, even if we declared maxItems

 

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

 

 GetImplementingThings() service is not working. 

 

Thank You.

Re: Not listing the one of RemoteThing using GetImplementingThings() service

Please use QueryImplementingThings service.

by default I didn't see that parameter associated with GetImplementingThings so likely it doesn't support it.