I need to use XrmQuery to update an id-binding field with "null".
Here is my code:
XrmQuery.update(x => x.contacts,
recordId,
{
address2_line1: null,
address2_postalcode: null,
address2_city: null,
cgk_origindate: null,
cgk_countrypostaladdressid_bind$cgk_countries: null,
cgk_originaddress: null
}).execute(id => {
});
The update does not work with cgk_countrypostaladdressid_bind$cgk_countries: null
.
When I delete this line the update works fine. Is there a typical way to make an id-binding field "null" with XrmQuery?