我試圖在CiviCRM中將電子郵件地址設置爲空白。我連載通過REST數組作爲下方後(代碼就是Groovy):通過REST API將CivCRM電子郵件設置爲空白
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
]
我已經試過了「overwriteblank」選項 - 但電子郵件似乎仍然沒有被設置爲空白。
謝謝
這些都是PHP API調用,但相應的應該適用於您的REST方法。 – 2014-10-09 01:57:49
REST as entity = Email&id = 33&action = delete&debug = 1&sequential = 1&json = 1&api_key = {yoursitekey}&key = {yourkey} – Interlated 2014-10-09 03:42:10