‎2018 Jan 27 7:34 AM - edited ‎2024 Feb 04 4:07 AM
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>
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
..............
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.