不确定为什么以下请求会出错,如下所示:
处理请求流时出错。请求应该是一个有效的顶级资源对象。
请求(某些细节由于明显的原因被混淆了):
POST http://someUrl.com/someUrl/XRMServices/2011/OrganizationData.svc/someSet HTTP/1.1
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8
Accept-Encoding: gzip, deflate
Content-Length: 387
Host: someUrl.com
{
"paymentid": {
"Id": "00e3f661-8d28-e321-896e-00155dfd1d05",
"LogicalName": "payment"
},
"invoiceid": {
"Id": "00e3f661-8d28-e411-896e-00155dfd1d05",
"LogicalName": "invoice"
},
"AppliedAmount": 1317.53000,
"name": "Payment Applied",
"postingstatus": "Posted",
"transactioncurrencyid": {
"Id": "80870a9b-329e-d421-8a22-00155d025001",
"LogicalName": "transactionCurrency"
}
}
所有逻辑名称均来自运行以下查询:
select
LogicalName
from
NHLPA_MSCRM.dbo.EntityView
where
BaseTableName = 'paymentbase' -- | invoicebase | transactioncurrencybase