我正在尝试在 CiviCRM 中将电子邮件地址设置为空白。我序列化一个数组,如下所示并通过 REST 发布(代码是 groovy):
def rest = [
json: 1,
api_key: apiKey,
key: siteKey,
debug: 1,
version: 3,
entity: 'Contact',
action: 'create',
contact_type: contact_type,
overwriteblank:true,
id: record.crID,
rest["email[1][email]"] = modified.value as String
rest["email[1][location_type_id]"] = 1
]
我尝试了“覆盖空白”选项 - 但电子邮件似乎仍未设置为空白。
谢谢