🐛 Describe the Bug
Discovered this issue because we needed to get a webhook event whenever a contact was assigned to a company or removed from a company.
We have webhook events for stuff like ContactCreate, ContactUpdate, ContactDelete. One of the default objects, obviously.
However, Companies do NOT have any unique webhook events. We can instead use RecordCreate, RecordUpdate, RecordDelete which fires for all custom objects and companies. We can use the payload to determine if its a company, so that's fine.
The big issue comes in where RelationCreate and RelationDelete are not firing for the default BUSINESSES_CONTACTS_ASSOCIATION between companies and contacts. The RelationCreate and RelationDelete endpoints ONLY send webhooks when a CUSTOM OBJECT association is fired. So there's no way to get events for when there's a relation added for the default built-in company to contact association. This seems like oversight.
📍 API Endpoint
Webhooks: RelationCreate and RelationDelete
✅ Expected Behavior
When a contact is assigned to a company or removed from a company, a relation is created or destroyed. So, we should be sending webhooks for those events.
Companies are already grouped with other custom objects in RecordCreate, RecordUpdate, RecordDelete. So their relations should also come through RelationCreate and RelationDelete.
💻 Screenshots or Code Samples
No response
Product Area
contacts
📋 Use Case
When a contact is added or removed from a company, I want to get an event about that so we can sync that event a client's EMR.
🚨 Why Should This Be Prioritized?
This is preventing our team from completing this integration for a client. Our client's sales team is intending to get into GHL and will be creating contacts and assigning them to a company. This info needs to flow into their EMR, but there's no way we can get that event when it occurs. It does not trigger a ContactUpdate, RelationUpdate, RecordUpdate, etc.
🧠 Additional Context
No response
🐛 Describe the Bug
Discovered this issue because we needed to get a webhook event whenever a contact was assigned to a company or removed from a company.
We have webhook events for stuff like ContactCreate, ContactUpdate, ContactDelete. One of the default objects, obviously.
However, Companies do NOT have any unique webhook events. We can instead use RecordCreate, RecordUpdate, RecordDelete which fires for all custom objects and companies. We can use the payload to determine if its a company, so that's fine.
The big issue comes in where RelationCreate and RelationDelete are not firing for the default BUSINESSES_CONTACTS_ASSOCIATION between companies and contacts. The RelationCreate and RelationDelete endpoints ONLY send webhooks when a CUSTOM OBJECT association is fired. So there's no way to get events for when there's a relation added for the default built-in company to contact association. This seems like oversight.
📍 API Endpoint
Webhooks: RelationCreate and RelationDelete
✅ Expected Behavior
When a contact is assigned to a company or removed from a company, a relation is created or destroyed. So, we should be sending webhooks for those events.
Companies are already grouped with other custom objects in RecordCreate, RecordUpdate, RecordDelete. So their relations should also come through RelationCreate and RelationDelete.
💻 Screenshots or Code Samples
No response
Product Area
contacts
📋 Use Case
When a contact is added or removed from a company, I want to get an event about that so we can sync that event a client's EMR.
🚨 Why Should This Be Prioritized?
This is preventing our team from completing this integration for a client. Our client's sales team is intending to get into GHL and will be creating contacts and assigning them to a company. This info needs to flow into their EMR, but there's no way we can get that event when it occurs. It does not trigger a ContactUpdate, RelationUpdate, RecordUpdate, etc.
🧠 Additional Context
No response