Missing DataTable from composer created through service
Hi everyone,
I created a Datatable using the below mentioned snippet.
DataTableName = "DT." + Facility + "TableInfo";
Resources["EntityServices"].CreateThing({
name: DataTableName /* STRING */,
thingTemplateName: "DataTable" /* THINGTEMPLATENAME */,
projectName: "Monitoring" /* PROJECTNAME */,
tags: "Applications:Set" /* TAGS */
});
Things[DataTableName].SetDataShape({name: "DS.TableInfo"});
Things[DataTableName].EnableThing();
Things[DataTableName].RestartThing();
When I ran the service from the Thing itself, datatable gets created and shown in the composer but when I tried the service through mashup, datatable is not shown in the composer. On executing the same service again, it shows Datatable already exists.
Anybody knows, what could be the reason?

