The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
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
Solved! Go to Solution.
Please use QueryImplementingThings service.
by default I didn't see that parameter associated with GetImplementingThings so likely it doesn't support it.
How many things do you have that implement that Template?
What is the name of the Thing?
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
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?
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
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 */
});
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.
Please use QueryImplementingThings service.
by default I didn't see that parameter associated with GetImplementingThings so likely it doesn't support it.