on ‎2018 Oct 10 8:52 AM
Hi experts,
hybris is connecting external system,external system provided post request odata service In hybris,trying to build the payload using oootb odata extensions in Hybris1808 Can you help us how to build payload to send data to external system.
Thanks, Anusha
Request clarification before answering.
Hello Anusha, This means that the item is associated with another item . to solve this problem, you need to set auto create to true as per the below link https://help.hybris.com/1811/hcd/d5e9027151d145afa5aa0a9241d33a3a.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
INSERT_UPDATE IntegrationObject; code[unique = true];
; TestOrder
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code)
; TestOrder ; AbstractOrder ; AbstractOrder
; TestOrder ; B2BUnit ; B2BUnit
INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]
;TestOrder:AbstractOrder; code ; AbstractOrder:code;;true
;TestOrder:B2BUnit; uid ; B2BUnit:uid;;true
we created "TestOrder " Integration Object and executed below script to build payload
import de.hybris.platform.integrationservices.service.IntegrationObjectConversionService;
import de.hybris.platform.core.model.order.OrderModel;
import de.hybris.platform.b2b.services.B2BOrderService;
final OrderModel order=b2bOrderService.getOrderForCode("xxxxx")
final Map payload = integrationObjectConversionService.findIntegrationObject(order,"TestOrder");
but we are getting error,the Integration Object Definition of 'TestOrder' was not found
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.