Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello, everyone!
I want to create 100,000 things in Thingworx,one by one create is too slow,Did you have quick way to create it?import or code to create?
I THANK very much!
Solved! Go to Solution.
In addition to Sushant details; I recommend you to do it in a try-catch block to avoid any issues.
Please refer to following link which shares details on Creating a Thing in Service Script
I hope it helps.
Hi Ju Bin, you can create things programmatically and for that you can use the EntityService from System > Resources
So for creating n number of Things you could call that CreateThing services in a loop.
Hope this helps.
In addition to Sushant details; I recommend you to do it in a try-catch block to avoid any issues.
Please refer to following link which shares details on Creating a Thing in Service Script
I hope it helps.
Thank you very much. I'm going to learn this code
Another recommendation would be to do it in blocks ( 100 by 100 or alike ), why? Creating long lasting transactions it's a bad choice in TW. To do this, you will have to create a timer which triggers the Creation Services, and on each trigger consume like a hundred.
Thanks Carles, that's quite an important note.