Skip to Content
0
Aug 11, 2023 at 02:08 PM

UpdateEntity sending get request in SAP MDK

83 Views Last edit Aug 11, 2023 at 02:19 PM 7 rev

Hi Team,

I am calling an UpdateEntity Action from my Mobile Services application. When I am testing that in the local web from BAS or from the Mobile Services application, the UpdateEntity Action is sending a Get request instead of PUT/MERGE.

Any help here is appreciated. I am using schema version 23.4. below are the UpdateEntity code

"Localization": "/smartmetertracking/i18n/i18n.properties",
"_SchemaVersion": "23.4",
{
"_Type": "Action.Type.ODataService.UpdateEntity",
"ActionResult": {
"_Name": "UpdateShipment"
},
"OnFailure": "/smartmetertracking/Actions/IncomingShipments/ReceiveShipmentError.action",
"OnSuccess": "/smartmetertracking/Actions/IncomingShipments/ReceiveSuccessful.action",
"Target": {
"Service": "/smartmetertracking/Services/SLOC.service",
"EntitySet": "zmm_i_metertransitstocount_vh"
},
"Properties": {
"plant": "/smartmetertracking/Rules/ReceiveShipments/GetPlantforShipment.js",
"storagelocation": "/smartmetertracking/Rules/ReceiveShipments/GetSLOCforShipment.js",
"sto": "/smartmetertracking/Rules/ReceiveShipments/GetSTOForShipment.js"
},
"RequestOptions": {
"UpdateMode": "Replace"
}
}

Thanks

Shubham