My desire is to do some processing, beyond the workflow capability, of a contact after they complete a form.
My solution so far is to trigger a workflow every time the form is submitted. That workflow calls a webhook. The webhook parses the payload and makes some changes via the HubSpot API.
However, the webhook payload is a significant data structure that appears to be a complete dump of the contact data. How can I tell what or why the webhook was triggered and what data is from my form?
While it is not possible to edit the workflow webhook POST body, if you'd like to know the form that contact submitted that trigger the workflow, you can look at the following field:
recent_conversion_event_name
Alternatively, you can look at this field
form-submissions
Hope this helps to shed some lights and let me know if this works for your use case.
Is the received POST body documented anywhere? It's a significant data structure and a list of fields and their definitions would be extremely helpful.