2019 Aug 16 11:21 AM - edited 2024 Feb 04 6:12 AM
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
Request clarification before answering.
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,bestcustomergroupI 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works right.
UPDATE A; code[unique=true];A(code[mode=append])
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.