I need to add all products without the node name row but all it fails when I remove elements from the array into sources items how to make it possible to create the exact same structure into xsd Message Mapping
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
[
{
"sourceItems": [
{
"sku": "WSH12-29-Red",
"source_code": "default",
"quantity": 111,
"status": 1
},
{
"sku": "MH01-XS-Black",
"source_code": "default",
"quantity": 222,
"status": 1
}
]
}
]
Request clarification before answering.
Hi Haroon,
The XML structure can have only one root node. It does not supports multiple nodes at root level. You can use XML to JSON converter after message mapping and select option to 'Suppress Root element'.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing another issue in each SKU object there no parent node require
Require Like that
{ "sku": "WSH12-29-Red",
"source_code": "default",
"quantity": 111,
"status": 1
}
Wrong Result :
"row": { "sku": "WSH12-29-Red",
"source_code": "default",
"quantity": 111,
"status": 1
},
"row":{ "sku": "WSH12-29-Red",
"source_code": "default",
"quantity": 111,
"status": 1
}
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.