I am encountering an issue with using XrmQuery to update an id-binding field with a value of "null".
Below is the code snippet that I'm working with:
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 issue arises specifically when trying to set
cgk_countrypostaladdressid_bind$cgk_countries
to null.
Interestingly, removing this line results in the update functioning correctly. Is there a workaround or best practice for setting an id-binding field to "null" using XrmQuery?