on 2024 Nov 21 9:18 AM
I am Working on a Deep Entity post odata request I am facing a challenge while adding multivalue-array in properties.
my JSON format is quit complex :
{
"tourUpdateEventType": "FROZEN",
"tourDetail": {
"tourId": "",
"transporterId": "",
"transporterName": "Default transporter",
"vehicleModelId": "",
"vehicleModelName": "SUZUKI",
"vehicleId": "",
"tourStartTime": "",
"tourEndTime": "",
"tourTravelDistance": 5955,
"isSortedForTour": false,
"isMultiTrip": false
},
"orders": [
{
"id": "",
"sourceOrderId": "",
"type": "DROP",
"date": "2024-11-07",
"slot": {
"start": "2024-11-07T02:00:00.000+0000",
"end": "2024-11-07T17:00:00.000+0000"
},
"channel": "DISPATCH_IQ",
"orderStatus": "PLANNED",
"actor": {
"id": "mara/personnel/rupsinghg"
},
"triggerTime": "2024-11-07T11:06:19.074+0000",
"lineItems": [],
"lineItemTransactionStatuses": [],
"teamId": "1012-KS1",
"quantities": [],
"homebaseId": "1012",
"homebaseEta": "2024-11-07T05:02:00.000+0000",
"homebaseCompleteOtp": "5544",
"customerCompleteOtp": "1868",
"cancellationOtp": "1868",
"customerReturnOtp": "6412",
"locationId": "1012-KS1-01-0004300012",
"planIteration": 1,
"tourDetail": {
"sequence": 1,
"isSortedForTour": false
},
"initialEta": "2024-11-07T05:11:22.000+0000",
"initialEtd": "2024-11-07T05:19:22.000+0000",
"orchestrationMetadata": {
"waybills": []
},
"amountTransaction": {
"refId": "40e649bef5374ebb87c432c658a50ad5",
"amount": {
"amount": 3,
"currency": "PKR"
},
"exchangeType": "NONE"
}
}
],
"timestamp": "2024-11-07T11:06:23.338+0000"
}
facing problem in :
"lineItems": [], "lineItemTransactionStatuses": [], kindly help
Request clarification before answering.
Which OData version (V2, V4) and which stack (CAP, RAP, ...) care you using?
OData V2 does not allow collections of strings at all.
OData V4 allows collections of strings, and they are supported in CAP. Not sure about the implementation state in RAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 3 | |
| 2 | |
| 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.