Doubt in Creating Users using services
Hi,
I am new in Thing Worx I have just completed thing Worx help center module and tried to create 100 user in Thing Worx using services like I created a Thing Template and a Thing the I tried to write script code in services section of Thing Worx Template for creating 100 user and my code is like this way:
var params = {
name: "UserTemplate", // Replace with the name of your template
description: "",
thingShape: "GenericThing", // Replace with the name of your thing shape
tags: ["UserTemplate"],
aspects: {}
};
var template = Resources["EntityServices"].CreateEntityTemplate(params);
var result = "";
for (var i = 1; i <= numberUsers; i++) {
var name = baseName + i;
params = {
name: name,
description: "",
template: template,
persistUserData: true
};
Resources["EntityServices"].CreateEntity(params);
result += "User " + name + " created.\n";
}
me.result = result;
but after executing this service I am getting error like:
TypeError: Cannot find function CreateEntityTemplate in object com.thingworx.resources.entities
please help me and also give some brief advice on creating users using services like what entities we need to create this
Thanks

