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

infoExpression in Y2YStreamConfiguration

former_member1208351
Participant
0 Kudos
337

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

former_member1208351
Participant
0 Kudos

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.

former_member224482
Active Contributor
0 Kudos

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.

former_member1208351
Participant
0 Kudos

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