2018 Feb 22 3:44 PM - edited 2024 Feb 04 4:32 AM
Hi I just want to understand what infoExpression really does. I set a simple infoExpression inside my Y2YStreamConfiguration: ....|ean->#{getBaseProduct().getCode()} basically rewrite the product ean with the baseProduct code. but I always get the ean not the expected code. what am I doing wrong?
Request clarification before answering.
infoExpression is used as an historical representation of the Item Model record stored in the ItemVersionMarker. It is only used when a deletion is detected so that a meaningful value is provided for the remote deletion operation instead of the PK value.
It is part of the deltadetection extension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, thank you very much for your answer, it s what I mostly saw while debug in the code. So my second question is can I achieve such things? i.e. merging data of two different items? thanks a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My first guess would be no.
Y2YSync has been originally designed to sync data between 2 Commerce platforms. For this reason, the data exported is intended to be re-imported and produce 2 identical database records (on separate Commerce of course).
Any field replacement/transformation would be cheating this original idea and may be the reason why it is not feasible within y2ysync alone.
You should consider exporting the column baseProduct(code) and perform the ean transformation in a middleware or the target system.
Thanks a lot again for your advice. well originally my goal was to merge a variant and its product into a target product. as explained in a new ticket that I created: https://answers.sap.com/questions/12767454/view.html goal is to be more standard
| 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.