Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I'm trying to get an infotable of Thing Templates that have a particular model tag. I can't figure out how to define the "types" parameter so that only ThingTemplates are returned
Hi David,
The types parameter expects a JSON object of the following form:
{
"items": ["Thing","ThingShape","ThingTemplate","DataShape","Network","ModelTagVocabulary","Mashup", "Menu","MediaEntity","StyleDefinition","StateDefinition","DataTagVocabulary","Group","User","ApplicationKey",
"Resource","Organization","Dashboard"]
}
In your case, you'd simply have an items array that contains one item, "ThingTemplate".
Regards,
Adam
Here is the ode that I am using and it is still returning all entity types
var myObject = new Object();
myObject = ;
var params = {
term: "TrackingDeviceModelTemplate" /* STRING /,<br> types: myObject / JSON */
};
var result = Resources["SearchFunctions"].SearchModelTagTerm(params);