Webhook from workflow: What triggered or changed?

tforster
Participant

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? 

 

Troy

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee

Hey @tforster,

 

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. 

tforster
Participant

Thank you @WendyGoh . 

 

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.

 

Troy

0 Upvotes
WendyGoh
HubSpot Employee

Hey @tforster,

 

For sure! You can see an example of the request data here - Using webhooks in workflows

0 Upvotes