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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Not listing the one of RemoteThing using GetImplementingThings() service

vi1
15-Moonstone
15-Moonstone

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
PaiChung
22-Sapphire I
(To:vi1)

Please use QueryImplementingThings service.

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

View solution in original post

7 REPLIES 7
PaiChung
22-Sapphire I
(To:vi1)

How many things do you have that implement that Template?

What is the name of the Thing?

vi1
15-Moonstone
15-Moonstone
(To:PaiChung)

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

 

 

PaiChung
22-Sapphire I
(To:vi1)

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?

vi1
15-Moonstone
15-Moonstone
(To:PaiChung)

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

PaiChung
22-Sapphire I
(To:vi1)

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 */
});

 

 

vi1
15-Moonstone
15-Moonstone
(To:PaiChung)

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.

PaiChung
22-Sapphire I
(To:vi1)

Please use QueryImplementingThings service.

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

Top Tags