Hi Need help on Error by using EpicorRestApi
{
“lCheckForOrderChangedMsg”: true,
“lcheckForResponse”: true,
“cTableName”: “OrderHed”,
“iCustNum”: 2200,
“iOrderNum”: 0,
“lweLicensed”: false,
“lContinue”: false,
“cResponseMsg”: “”,
“cCreditShipAction”: “”,
“cDisplayMsg”: “”,
“cCompliantMsg”: “”,
“cResponseMsgOrdRel”: “”,
“cAgingMessage”: “”,
“ds”: {
“OrderHed”: [
{
“Company”: “ABC”,
“Plant”: “59c”,
“PONum”: 923070000,
“POLine”: 1,
“TermsCode”: “T0001”,
“CustNum”: 2200,
“EntryPerson”: “01234”,
“CurrencyCode”: “Base”,
“CustomerCustID”: “T00123”,
“FOB”: “FOB”,
“Inter_PO_c”: “923012345”,
“RowMod”: “A”
}
]
}
}
I keep getting this error which I might not know which area I has miss.
“”“ErrorDetails”“: [
{
““Message””: ““Customer Currency does not Match! \nUpdate Aborted.””,
““Type””: ““Error””,
““Program””: ““SalesOrder.Update.dll””,
““Method””: ““A001_CustomCodeAction””,
““ColumnNumber””: 7,
““LineNumber””: 90
}
]”
I has using my call
Parameters = new
{
lCheckForOrderChangedMsg = true,
lcheckForResponse = true,
cTableName = “OrderHed”,
iCustNum = Convert.ToInt32(row[“custNum”]),
iOrderNum = 0,
lweLicensed = false,
lContinue = false,
cResponseMsg = RespMsg,
cCreditShipAction = CreditShipAction,
cDisplayMsg = DispMsg,
cCompliantMsg = CompMsg,
cResponseMsgOrdRel = RespMsgOrdRel,
cAgingMessage = AgingMessage,
};
jData = new
{
Parameters.lCheckForOrderChangedMsg,
Parameters.lcheckForResponse,
Parameters.cTableName,
Parameters.iCustNum,
Parameters.iOrderNum,
Parameters.lweLicensed,
Parameters.lContinue,
Parameters.cResponseMsg,
Parameters.cCreditShipAction,
Parameters.cDisplayMsg,
Parameters.cCompliantMsg,
Parameters.cResponseMsgOrdRel,
Parameters.cAgingMessage,
postData.ds
};
inputObj = JsonConvert.SerializeObject(jData, Formatting.Indented);
resp = EpicorRest.BoPost("Erp.BO.SalesOrderSvc", "MasterUpdate", inputObj, default);