I'm getting all properties from a Thing in a mashup.
How I can get rid of one of them (FaultCode for example)?
Solved! Go to Solution.
Hello,
One way you could do this would be to create your own service and filter out your data in there.
Regards,
Jens
Hello,
One way you could do this would be to create your own service and filter out your data in there.
Regards,
Jens
I have accomplished following your suggestion and works,,,, but I suspect that should be a shorter way.......
var modelProperties = Resources['InfoTableFunctions'].CreateInfoTable({infoTavleName: "modelProperties"});
modelProperties.AddField({name: "name", baseType: "STRING"});
modelProperties.AddField({name: "description", baseType: "STRING"});
modelProperties.AddRow({name: "PreheatTemperature"});
var data = me.QueryNamedPropertyHistory({
propertyNames: modelProperties,
maxItems: 1000
});
result = data.ToJSON();
or this one:
let data = me.QueryNumberPropertyHistory({
"propertyName": "PreheatTemperature"
});
data.RemoveField("id");
result = data.ToJSON();
});
result = data.ToJSON();
Hello,
I haven't really used these "QueryNamedPropertyHistory" and"QueryNumberPropertyHistory" services.
But if the services work, then that should be fine!
Regards,
Jens