Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I found ReadEntityAsJSON service to export entity information. BUT It's not export delicate information(ex) stream data)
Is there supporting system to importing and exporting Entity?
Thanks.
Solved! Go to Solution.
Saving to the repository is essentially what happens when you export to source control. There is probably a way to do that via service script... yeah, something like this:
Have you seen this KCS article on this? Notice the "WithData=true" in the URL. I hope this helps!
Thanks Tori
It DOES work.
but I have 3 questions
1. How can I import each entity(not entities) with data in script?
2. Can it save in repository not in exports?
3. How to import entity in Service from script
There is a REST call for importing as well, though I don't know the exact syntax, but it is something like http://localhost/Thingworx/DataImporter
I will try to find the time to figure out what parameters to use for this, but I wanted to get a comment back to you sooner in case I don't get that chance.
Thank you for your pleasure Tori
I hope you find it.
Saving to the repository is essentially what happens when you export to source control. There is probably a way to do that via service script... yeah, something like this: