cancel
Showing results for 
Search instead for 
Did you mean: 

Impex: Import exported data to another attribute

Former Member
0 Kudos

Is it possible to export Data of an attribute and import it to another with impex?

Details: I would like to export Data from "myOldAttribute" at the type "MyDataType" and import it to a new attribute "MyDataType" of the same type "MyDataType". Do i need to store the export to a file and reimport it again with the adjustment to the new Attribute or is it possible to directly reimport the result of the export?

Example:

 UPDATE MyDataType;pk;myOldAttribute
 INSERT_UPDATE MyDataType;pk[unique=true];myNewAttribute

Thanks for your hints.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor
0 Kudos

You need to export the data using the ImpEx and then import it using the updated ImpEx. I believe you are already aware that Hybris exports the data into a .zip file. You need to copy the data from the extracted file and import it using an ImpEx with the header pertaining to the new itemtype.

former_member620692
Active Contributor
0 Kudos

Hi - did it help?

Former Member
0 Kudos

Hi thanks for your reply. I found some examples for it and think i have to use the includeExternalDataMedia Method.

former_member620692
Active Contributor
0 Kudos

You are most welcome.

In order to understand includeExternalDataMedia, please login to backoffice as an admin and go to System > Script Generator. Click the button, GENERATE and copy any of the export ImpExes from the generated script and execute it in hAC > Console > ImpEx Export. If you extract the generated .zip file, one of the files you will get is importscript.impex where you will find includeExternalDataMedia.

Please check the following links for more information:

  1. https://wiki.hybris.com/display/release5/ImpEx+-+User+Guide

  2. https://help.hybris.com/1811/hcd/8bee801a86691014bc18e35ed3dcf23c.html

  3. https://wiki.hybris.com/display/release5/ImpEx+API#ImpExAPI-inclusion

Answers (0)