在本地使用Dynamics 365版本1612(8.2.2.112).在Quote表单上,我修改了Activate Quote调用的操作以创建自定义实体(Deal)记录,然后导航到新创建的记录.这在所有浏览器中都运行良好,直到2周前.现在,它在IE中不起作用(客户端首选 - 但在Chrome,Firefox和Edge中工作),我得到的是一些通用的JSON错误."无效的JSON.在JSON内容中无法识别令牌."
我添加的调试数量似乎没有增加任何清晰度.我在XMLHttpRequest上的IE中遇到400错误,地址是 https://xxx.xxx.com/CRM/api/data/v8.2/quotes(04224AF9-DD70-E811-8123-000D3A02DFDB)/Microsoft.Dynamics.CRM .new_SubmitQuote
完整的响应主体粘贴在下面.
完整的JSON粘贴在下面
这是JS调用操作(new_SubmitQuote)来创建新的Deal实体记录,然后导航到该新记录.
n.xxx_submitQuote=function(n){
r.showXrmProgressIndicator("Submitting, please wait...");
u.executeBoundAction("quotes",n,"new_SubmitQuote").then(function(n){
t.Utility.openEntityForm("sut_deal",n.sut_dealid,null,null)}).catch(r.logError).then(function(){
r.closeXrmProgressIndicator()
})
}
Run Code Online (Sandbox Code Playgroud)
任何想法,想法或建议将不胜感激.我很难过.
谢谢,诺亚
JSON
{
"@odata.context":"https://xxx.xxx.com/CRM/api/data/v8.2/$metadata#quotes/$entity",
"@odata.etag":"W/\"54328330\"",
"new_spread":95903.0200,
"new_amount10percent":310777.7900,
"new_revenue10":777.79,
"new_paymentcount_date":"2018-06-19T00:53:29Z",
"_pricelevelid_value":"bfa9dc95-dbcd-e611-80d7-000d3a01f3fc",
"exchangerate":1.0000000000,
"totaldiscountamount":0.0000,
"name":"100026",
"totallineitemamount":0.0000,
"_transactioncurrencyid_value":"9107a2c3-bab1-e611-80d2-000d3a01f3fc",
"_owninguser_value":"a9c113ac-d532-e811-8119-000d3a02dfdb",
"totalamount":0.0000,
"_ownerid_value":"a9c113ac-d532-e811-8119-000d3a02dfdb",
"versionnumber":54328330,
"quoteid":"04224af9-dd70-e811-8123-000d3a02dfdb",
"totallineitemdiscountamount":0.0000,
"timezoneruleversionnumber":0,
"totalamountlessfreight_base":0.0000,
"statuscode":1,
"createdon":"2018-06-15T20:52:12Z",
"totaltax_base":0.0000,
"totallineitemamount_base":0.0000,
"totalamount_base":0.0000,
"modifiedon":"2018-06-15T20:53:23Z",
"totaltax":0.0000,
"totaldiscountamount_base":0.0000,
"quotenumber":"QUO-38015-F3D2B8",
"_modifiedby_value":"a9c113ac-d532-e811-8119-000d3a02dfdb",
"revisionnumber":0,
"_createdby_value":"a9c113ac-d532-e811-8119-000d3a02dfdb",
"pricingerrorcode":0,
"totallineitemdiscountamount_base":0.0000,
"statecode":0,
"_owningbusinessunit_value":"1a1ad33f-bab1-e611-80d2-000d3a01f3fc",
"willcall":false,
"_customerid_value":"7a60bf77-dd70-e811-8123-000d3a02dfdb",
"billto_addressid":null,
"discountpercentage":null,
"shipto_composite":null,
"onholdtime":null,
"billto_line2":null,
"closedon":null,
"paymenttermscode":null,
"freightamount_base":null,
"_modifiedonbehalfby_value":null,
"freightamount":null,
"billto_city":null,
"_campaignid_value":null,
"shipto_line1":null,
"_contactid_value":null,
"requestdeliveryby":null,
"freighttermscode":null,
"billto_stateorprovince":null,
"effectivefrom":null, …Run Code Online (Sandbox Code Playgroud)internet-explorer microsoft-dynamics json xmlhttprequest dynamics-crm