Need Help with capturing Custom Object's data in Marketo Webhooks
Hi,
We have established a custom object, 'Application,' which is connected to the 'Person' object in a many-to-many fashion. Here is the schema for the 'Application' custom object:
{
"applicationID": "123",
"status": "Completed",
// ...other application-related data
}
Our objective is to monitor and record all 'Email Delivered' related activities that occur within Marketo and store them in our system's database. Whenever the status of an application changes, an email is sent to the leads associated with that particular application.
To accomplish this, we have configured a webhook in Marketo that triggers whenever an email is delivered.


This webhook sends a request to one of our endpoints with the following request payload:
{
"leadEmail": {{lead.Email Address}}, // Lead's email
"triggerName": {{trigger.Trigger Name}}, // Email Delivered
"Name": {{trigger.Name}}, // Name of the email asset
"TriggerSubject": {{trigger.Subject}}, // Email's subject
"sentDateTime": {{system.dateTime:default=edit me}} // Time when the above campaign was executed
}
Problem=> I would like to include the 'applicationID' of the custom object record in the request payload. This would allow me to save the details based on the 'applicationID' (which serves as the primary key) instead of the lead's email address.
Unfortunately, I haven't been able to retrieve the 'applicationID' in the request payload. Is there a method or workaround to obtain the 'applicationID' of the custom object for which the email was sent?
Thanks in advance.