RelationCreate event fires whenever two specific records are linked together via an association. While an association defines the type of relationship between two object types, a relation is the concrete instance — the actual link between two individual records. Use this event to replicate relationship graphs in external systems, trigger cross-object workflows, or build real-time graph visualizations.
Payload
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for this relation instance |
firstObjectKey | string | Object type key for the first record in the relationship (e.g., "custom_objects.mad") |
secondObjectKey | string | Object type key for the second record in the relationship (e.g., "contact") |
firstRecordId | string | ID of the specific record on the first side of the link |
secondRecordId | string | ID of the specific record on the second side of the link |
associationId | string | ID of the association definition that governs this relation |
locationId | string | Sub-account ID where this relation exists |
Example payload
Related
- Relation Delete — fires when a record-level link is removed
- Association Create — fires when the association type definition is created
- Associations API — manage association definitions and relations
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)