Find thing by Name from .NET SDK
Hi all, I'm trying to check if a thing exists before do other stuff.
Actually I'm taking the "long road", invoking the SearchThingsByTemplate service, but it doesn't work as well, since seems that the "thingTemplate" is not accepted as String.
(you can find the error log as attacched)
ValueCollection thingParams = new ValueCollection();
thingParams.Add("maxItems", new NumberPrimitive(500));
thingParams.Add("thingTemplate", new StringPrimitive(thingTemplate));
var infotable = client.invokeService(ThingworxEntityTypes.Resources, ,"SearchFunctions", "SearchThingsByTemplate", thingParams, 5000);
QUESTIONS:
- How can i give a "ThingTemplate" to this service?
- Can I check if a Thing exists in an other way?
Thanks in advance!

