Hello,
I am trying to update a custom field on an External Contact in Architect via Data Action. I am using PUT /api/v2/externalcontacts/contacts/${input.id}. I am using the following request body template and what I am noticing is that everything that I do not specify as an input, it will be erased from the external contact. Meaning, if I don't specify the personal email address as an input, and the contact already has one, and I run this request, the personal address gets deleted. Is there a way to prevent contact fields that are not specified as inputs from being erased?
{
"id": "{input.id}",
"firstName": "{input.firstName}",
"lastName": "{input.lastName}",
"workPhone": {
"display": "{input.callANI}",
"extension": "",
"acceptsSMS": "",
"userInput": "",
"e164": "",
"countryCode": ""
},
"workEmail": "{input.workEmail}",
"personalEmail": "",
"otherEmail": "",
"schema": {
"id": "adb58b7a-b2ef-43ec-9039-64126ee84f94",
"version": "5",
"selfUri": ""
},
"customFields": {
"lastsurvey_datetime": "{input.lastsurvey}"
},
"selfUri": ""
}
Thanks,
Peter