cancel
Showing results for 
Search instead for 
Did you mean: 

Creating orders in hybris from external system through data hub

Former Member
0 Kudos

Greetings!

I'm new to hybris. I've completed a tutorial regarding data modeling through a data hub extension:

https://wiki.hybris.com/display/R5T/hybris+5+Developer+Training+Trail+-+Data+Modeling+through+a+Data...

I want to import orders from other system into hybris, but one thing isn't clear to me. The target data has to be something that hybris understand. I can't figure out what the xml for hybris order should look like. For example below is the XML for categories.

Any help will be much appreciated!

Regards, Plamen

         <targetItems>
             <item>
                 <type>ApparelCategory</type>
                 <exportCode>Category</exportCode>
                 <description>Hybris Platform representation of an apparel product category</description>
                 <updatable>true</updatable>
                 <canonicalItemSource>CanonicalApparelCategory</canonicalItemSource>
                 <status>ACTIVE</status>
                <attributes>
                     <attribute>
                         <name>code</name>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <transformationExpression>integrationKey</transformationExpression>
                         <exportCode>code[unique=true]</exportCode>
                         <mandatoryInHeader>true</mandatoryInHeader>
                     </attribute>
                     <attribute>
                         <name>name</name>
                         <localizable>true</localizable>
                         <collection>false</collection>
                         <transformationExpression>name</transformationExpression>
                         <exportCode>name</exportCode>
                         <mandatoryInHeader>false</mandatoryInHeader>
                     </attribute>
                      <attribute>
                         <name>superCategories</name>
                         <localizable>false</localizable>
                         <collection>true</collection>
                         <transformationExpression>parentCategories</transformationExpression>
                         <exportCode>superCategories(code,$catalogVersion)</exportCode>
                         <mandatoryInHeader>false</mandatoryInHeader>
                     </attribute>
                     <attribute>
                         <name>catalogVersion</name>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <transformationExpression>""</transformationExpression>
                         <exportCode>$catalogVersion</exportCode>
                         <mandatoryInHeader>true</mandatoryInHeader>
                     </attribute>
                 </attributes>
             </item>
         </targetItems>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It depends on how the order is modeled/modified in your hybris installation. But in the end you would like to create one for each field of your order. each is then mapped to one column of impex.

Follow the link on a reference on how the impex looks like. https://wiki.hybris.com/display/release5/How+To+Import+Products+and+Orders+-+Tutorial and see: https://wiki.hybris.com/display/release5/Domain+Modeling+in+the+Data+Hub