K3Cloud Web API保存客户失败
金蝶云社区-dtf1471419118
dtf1471419118
0人赞赏了该文章 1,544次浏览 未经作者许可,禁止转载编辑于2018年06月19日 09:19:38

JSON如下:
{
"Creator": "",
"NeedUpDateFields": [

],
"NeedReturnFields": [

],
"IsDeleteEntry": "True",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "True",
"Model": {
"FCUSTID": 0,
"FCreateOrgId": {
"FNumber": "100"
},
"FUseOrgId": {
"FNumber": "100"
},
"FName": "测试客户002",
"FCOUNTRY": {
"FNumber": "China"
},
"FIsDefPayer": false,
"FIsGroup": false,
"FCustTypeId": {
"FNumber": "KHLB001_SYS"
},
"FGroup": {
"FNumber": "01"
},
"FTRADINGCURRID": {
"FNumber": "PRE001"
},
"FTaxType": {
"FNumber": "SFL02_SYS"
},
"FInvoiceType": "1",
"F_CSG_YunCheck": false,
"FPriority": 1,
"FISCREDITCHECK": false,
"FIsTrade": false,
"F_PAEZ_Type_of_trade": {
"FNumber": "MYRX01"
},
"FT_BD_CUSTOMEREXT": {
"FEnableSL": false,
"FPROVINCE": {
"FNumber": "CRMProvince001"
}
},
"FT_BD_CUSTLOCATION": [
{
"FContactId": {
"FNumber": "CXR000158"
},
"FIsDefaultConsigneeCT": false
}
]
}
}

调用时一直提示:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"【字段Key:FT_BD_CUSTLOCATION,字段名:联系人】;实体类型BD_CUSTLOCATION中不存在名为Id的属性","Message":" 在 Kingdee.BOS.WebApi.FormService.MapPropertyService.MapComplexProperty(String pkProperty, Dictionary`2 sourceObj, DynamicObject targetObj, Int32 rowIndex, HashSet`1 NeedUpDateFields)\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Revole()\r\n 在 Kingdee.BOS.WebApi.FormService.Save.Execute()\r\n 在 Kingdee.BOS.WebApi.FormService.BillOperationService.ExecuteOperation(FormOperation op, String data)","DIndex":0}],"SuccessEntitys":[],"SuccessMessages":[],"MsgCode":0}}}

请各位大神帮忙看下

您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!

请选择打赏金币数 *

10金币20金币30金币40金币50金币60金币
可用金币: 0