Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! 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);