I trying to set null to lookup field using Xrm.WebApi.updateRecord.
error:
An error occurred while validating input parameters: Microsoft.OData.ODataException: The 'odata.bind' instance or property annotation has a null value. In OData, the 'odata.bind' instance or property annotation must have a non-null string value.
code====================================================================
var updateSalesPlanMember = {};
// navigation property name
updateSalesPlanMember["kv_UserAddress@odata.bind"] = null;
Xrm.WebApi.updateRecord("kv_salesplanmember", recordId, updateSalesPlanMember).then(
function success(result) {
///success code
},
function (error) {
console.error(error.message);
}
);
code=============================================================
Thanks!
Kind regards