Skip to Content

error in integration key for product reference using odata endpoint

We are using odata endpoint on Hybris 1905.9 CCV2 to create an instance of product reference using source, target, reference type, active, preselected and quantity attributes.

SAP Commerce Odata feature creates integration key property using values of unique attributes – version | catalog| reference type | product code.

This value contains only the target product code and source product code is not present in the integration key. Due to which while making a GET call using odata endpoint, the respective entry is not found. Same product model is used for souce and target product in search query.

query: [SELECT {productreference:pk} FROM {ProductReference* AS productreference} WHERE {productreference:referenceType} = ?referenceType AND {productreference:source} = ?source AND {productreference:target} = ?target], query parameters: [{referenceType=8796101902427, source=8796093480961, target=8796093480961}]

Has anyone faced this issue and what would be the best way to tackle such problems.

image1.jpg (256.1 kB)
image2.jpg (41.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.