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

Target items xml elements meaning

Former Member
0 Likes
285

Could any one help me in this target-items.xml file what are these fields? (1) tag means? (2) updatable = true means? (3) in the attibute section "name" means? I read Name is the target field name. If this is the target field name what is the exportCode tag? When do we use name tag and when do we use exportCode tag?

 <type>CompanySalesUnit</type>
 <exportCode>B2BUnit</exportCode>
 <description>Company sub-unit responsible for sales.</description>
 <canonicalItemSource>CanonicalPartySales</canonicalItemSource>
 <updatable>true</updatable>
 <attributes>
     <attribute>
         <name>b2bUnitName</name>
         <transformationExpression>resolve('CanonicalParty').name</transformationExpression>
         <exportCode>Name</exportCode>
     </attribute>
     </attributes>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi SasiReddy,

You should always think of the target items in relation to the ImpEx that they are going to create. The updateable=true means that Data Hub will generate a header with the operation set to INSERT_UPDATE rather than just INSERT. The export codes will also go into the header line - so the export code for the type will be the item type in the header line ("B2BUnit" in this case) and the export code for the attribute will also go in the header line as the name of the attribute - in this case "Name". The name tag in the attribute is the name of the attribute within the context of Data Hub, not the context of the actual target.

Former Member
0 Likes

Thanks for your quick reply. One more question.. Some times we use tag . What does status = Active means?

 <type>CompanySalesUnit</type>                    <exportCode>B2BUnit</exportCode>
     <description>Hybris Platform representation of Test Item</description>
         <updatable>true</updatable>
         <canonicalItemSource>CanonicalPartySales</canonicalItemSource>
         <status>ACTIVE</status>
     <attributes>
             <attribute>

..............

Answers (0)