Skip to main content
1-Visitor
February 6, 2017
Solved

Data export

  • February 6, 2017
  • 3 replies
  • 5513 views

Hi everyone,

  My Thingworx server is not on my local PC, it is located in somewhere else.

Is there any methods that I can save those data in DataTable and Stream into files?

Best answer by Aanjan

Lee, if you are trying to export DataTables, Streams or ValueStreams, the standard export (on that entity) will only give you the entity itself, and not the data.

If you want the data to be downloadable as well, what you need to do is do an 'Export to File' (for data) via Import/ Export, save that to your File Repository, open that File Repository Thing, run the 'CreateZipArchive' to create a zip of the folder that just got created, and then download it with a service like 'GetFileListingWithLinks'.

3 replies

5-Regular Member
February 6, 2017

Hi Lee Wei​, Yes, you can take an export of the ThingWorx data by just accessing the URL.

If you are looking for export of single DataTable or Stream. You can download the export to local System Directly.

If you are looking to Export multiple files; you can first export the files to repository and then create a Mashup to download the files from Repository to your local system.

I Hope it Helps.

Thanks,

Ankit Gupta

5-Regular Member
February 6, 2017

Hi Lee,

Is it correct understanding that you kind of want to "download" all the data that you have created/stored in DataTable and Streams locally from the ThingWorx Server? What kind of Database is used as Persistence Provider for ThingWorx?

Aanjan5-Regular MemberAnswer
5-Regular Member
February 6, 2017

Lee, if you are trying to export DataTables, Streams or ValueStreams, the standard export (on that entity) will only give you the entity itself, and not the data.

If you want the data to be downloadable as well, what you need to do is do an 'Export to File' (for data) via Import/ Export, save that to your File Repository, open that File Repository Thing, run the 'CreateZipArchive' to create a zip of the folder that just got created, and then download it with a service like 'GetFileListingWithLinks'.

lwei1-VisitorAuthor
1-Visitor
February 7, 2017

Thank you! It is what I need!

Lee