Export as well as import entities using custom script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Export as well as import entities using custom script
Hi Team,
Could anybody let me know how to export as well as import entities (single as well as multiple entities) using and PTC script?
Please share the snippet for both import and export (single as well as multiple entities)
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Coding
-
Examples
-
TWX Dev Portal
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ranjank,
Here are some out-the-box APIs that can be used to import and export entities : ExportSourceControlledEntities, ExportSourceControlledEntitiesToZipFile, ImportSourceControlledEntities. They are available under the SourceControlFucntions resource.
Please refer also to SourceControlFunctions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ranjank,
Here are some out-the-box APIs that can be used to import and export entities : ExportSourceControlledEntities, ExportSourceControlledEntitiesToZipFile, ImportSourceControlledEntities. They are available under the SourceControlFucntions resource.
Please refer also to SourceControlFunctions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for your response. Appreciated!!
Also, may I know what is the name of api for exporting and importing specific entity both in .xml and .twx format.
Also if you let me know the api for data export and import for datatables, streams and valuestreams.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ranjank,
The APIs mentioned in my previous email are the ones available in ThingWorx. They do import/export from/to XML only though.
Note that you can also export/import using REST API : Manually Importing and Exporting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ranjank.
If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon