Setting null for single-valued navigation property using Xrm.WebApi

后端 未结 4 1503
忘掉有多难
忘掉有多难 2021-01-14 23:34

We are in the process of remediation, re-engineering old JS web resources for latest D365 v9 sdk changes w.r.t Client scripting API improvements & deprecation.

W

4条回答
  •  广开言路
    2021-01-14 23:52

    I just tried in v9.1.0.3832 var data = { _[LookupFieldName]_value : null } is working for me.

    var data =
    {
      "statecode": 1,
      "*_myprefix_mylookupfieldname_value*": null
    }
    Xrm.WebApi.updateRecord("*entityName*", *recordId*, data);
    

提交回复
热议问题