AddContact/EditContact Webhooks & Custom Fields

bryananaya

Beginner
I am having two issues with webhooks and both have to do with Custom Fields.

1) I set up a webhook using AddContact and have it functioning but $vars does not include any custom fields when adding a contact. Even though a custom field was filled out in the Mumara UI it is not showing up in $vars. I also tested with Postman with response=1 and Postman returns the additional_fields_data but the webhook $vars does not. I thought I could just use the API getContacts but that returns an empty additional_fields_data set when run inside the AddContact webhook. My assumption is that AddContact is done before insertion of custom fields and the webhook is called after the contact has been created but before the custom fields have been inserted that is why I cannot grab any custom fields. Any suggestions how I get custom field data when a contact is added?

2) The EditContact webhook has a similar issue. The EditContact webhook never fires if a custom field is modified. Only if a field in the Contact Details area is modified will the EditContact webhook trigger. How would I go about getting a webhook to trigger when a custom field is updated?

Thanks!
 
1. To get the variables returned in a hook, you need to enable it first in the Application Settings. We have turned it off by default to enhance the performance. Please refer to the snapshot below.

1715435227754.png

2. The EditContactList hook should trigger as soon as the contact information is resubmitted, whether there is any change or not.
 
Thanks! I was able to get the custom fields to show in the webhooks.

Editing a custom field still does not trigger any webhook event. Only if I edit a field in the "Contact Details" section of the contact will any webhook fire. If I make a change in the "Contact Information" or "Custom Fields" section for a specific contact nothing happens.
 
Back
Top