cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How can I implement service to importing/exporting Entity

kpark1
1-Newbie

How can I implement service to importing/exporting Entity

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ttielebein
12-Amethyst
(To:kpark1)

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:

http://localhost/Thingworx/Resources/SourceControlFunctions/Services/ExportSourceControlledEntities?Accept=application%2…

View solution in original post

5 REPLIES 5
ttielebein
12-Amethyst
(To:kpark1)

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

ttielebein
12-Amethyst
(To:kpark1)

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.

ttielebein
12-Amethyst
(To:kpark1)

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:

http://localhost/Thingworx/Resources/SourceControlFunctions/Services/ExportSourceControlledEntities?Accept=application%2…

Top Tags