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

hybris impex file

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor

They are Special Attributes: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1905/en-US/1c8f5bebdc6e434782ff0cfdb0ca...

Sometimes you need to add data to an item that is not covered by an attribute, for example the media data. In these cases, the syntax of ImpEx provides a special kind of attribute definition called special attributes that do not have a mapping to a real attribute of the configured type.

They are marked with the @ symbol and always need the translator modifier, because there is no default implementation. Furthermore the specified translator has to be a realization of the SpecialValueTranslator interface.

The following code sample shows how to create a media with the data set from the specified file:

INSERT_UPDATE Media;code[unique=true];@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator];myMedia;file://c:/myMedia.txt

The type Media has no media attribute, but specifying the media attribute as a special attribute instructs ImpEx not to search for such an attribute. Instead, it will call the special translator specified with the translator modifier, which performs the import logic.

Let me know if it answered your question. If it does, don't forget to upvote and accept the answer.

Answers (0)