I created a workflow extension to help users send SMS when receiving the webhook. I would like to know are there any way to know the webhook trigger from which account?
In the request payload, you should see a new parameter that determines the source of this data.
The specific parameter is the originobject included in the request payload. It includes the HubSpotportalId,extensionDefinitionId,andextensionDefinitionVersionId.
An example of this would look something along the lines of the following:
{
"fields": {
"appointment_date": "1536019200000",
"appointment_notes": "30 minute appointment to go over the services contract",
"appointment_title": "Appointment with Sky"
},
"object": {
"objectId": 34,
"objectType": "CONTACT"
},
"origin": {
"extensionDefinitionId": 108,
"extensionDefinitionVersionId": 5,
"portalId": 99160967
}
}
In the request payload, you should see a new parameter that determines the source of this data.
The specific parameter is the originobject included in the request payload. It includes the HubSpotportalId,extensionDefinitionId,andextensionDefinitionVersionId.
An example of this would look something along the lines of the following:
{
"fields": {
"appointment_date": "1536019200000",
"appointment_notes": "30 minute appointment to go over the services contract",
"appointment_title": "Appointment with Sky"
},
"object": {
"objectId": 34,
"objectType": "CONTACT"
},
"origin": {
"extensionDefinitionId": 108,
"extensionDefinitionVersionId": 5,
"portalId": 99160967
}
}