Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Update External Contact

    Posted 06-05-2025 19:21

    78692638d4a24645fbf5 | 2021-04-08 02:30:11 UTC | #1

    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


    system | 2021-05-09 02:33:11 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 10539