Solved
Error on create Thing
Hi all, I've installed TW9.1.0 and I try to create new thing into service with this script:
var params = {
name: "NewThingName",
thingTemplateName: "GenericThing"
};
Resources["EntityServices"].CreateThing(params);
Things["NewThingName"].Enable();
Things["NewThingName"].Restart();
But always give this error:
Error executing service AA. Message :: TypeError: Cannot find function Enable in object com.thingworx.things.ConfiguredThing@20a84ab1. - See Script Error Log for more details.
what am I doing wrong?

