I have a Custom module called "Associates" or singular - "Associate". In the Accounts module I have a custom field with a lookup to the Associate custom module - fieldname: "TA Associate". There are situations in which I want to clear the Lookup (the equivalent to clicking the eraser icon next to the TA Associate field in the Accounts edit page). The following code snippet claims to succeed, but it doesn't actually clear the value.
sAccountID = input.idAccount.toString();
respUpdate2 = zoho.crm.updateRecord(("Accounts"), sAccountID, { "TA Associate" : "" });
Note, if I replace it with
respUpdate2 = zoho.crm.updateRecord(("Accounts"), sAccountID, { "TA Associate" : "My Associate" });
where "My Associate" is a valid record in my Associates module, it works fine. So I can change/add values, I just can't clear the field. Please help.