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

Create impex for Collection type

Former Member
0 Kudos
4,300

Hello,

I have a collection (list) of a type X with X having two attributes of type Y and Z.

This collection X has been added to another type A. I want to create an impex to attach this collection X to type A. I tried below:

UPDATE A;code[unique=true];X(A(code))

;381294;19564,19568

The above impex fails as it is not able to read the codes 19564 and 19568 from type A. Can u suggest an approach for this or will I have to write a translator for same?

Thanks in Advance

Accepted Solutions (0)

Answers (2)

Answers (2)

arvind-kumar_avinash
Active Contributor

Hi shivani chopra - It is not clear whether you want to insert a new row or update an existing row. In any case, X(A(code)) will not work as it roughly means X.A.code which is not what you meant.

In the ImpEx given below, groups is a collection which relates a Customer where each group is identified by a uid.

INSERT_UPDATE Customer;uid[unique=true];customerID[unique=true];groups(uid)
;ppetersonson;K2006-C0001;customergroup,bestcustomergroup

I hope, it will give a fair understanding to create your ImpEx. You can also check https://wiki.hybris.com/display/release5/ImpEx+Syntaxfor more information.

VinayKumarS
Active Contributor
0 Kudos
This works right.



UPDATE A; code[unique=true];A(code[mode=append])