[ENG-3949] feat(hubspot): Event Occurrences#619
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
| The connector supports reading from: | ||
| - [meeting-links](https://developers.hubspot.com/docs/api-reference/latest/scheduler/meetings/get-meeting-links) | ||
|
|
||
| #### Event Occurrences |
There was a problem hiding this comment.
Can you please add a couple of lines about what events do at the beginning? i.e. an event is captured during form submissions, mail delivery, sequence changes, etc. This will help builders understand the relevance of events to their use case. Especially since HubSpot has used interchanging functionality in the past for it.
| * AMPERSAND-event-occurrences-e_mta_bounced_email_v2 | ||
| * AMPERSAND-event-occurrences-e_visited_page | ||
|
|
||
| Where to get the event type name: event type identifiers are returned by the Events API's [event types endpoint](https://developers.hubspot.com/docs/api-reference/latest/events/retrieve-events/get-event-types). |
There was a problem hiding this comment.
- I'd move this before the naming rule and probably run it by an LLM to tighten up the wording
- Could you also mention that
e_events are mostly standard, anda_may be custom, and thate_events are therefore generally safe to use across consumers?
There was a problem hiding this comment.
Addressed all the comments in this commit: e823ed6
I have not found evidence that a_ signifies as custom object. However I did create the custom definition and sent some custom events.
The API behavriour summary:
- Creating custom event definition.
POST /events/2026-03/event-definitions {
"label": "This is my event",
"includeDefaultProperties": true,
"propertyDefinitions": []
}
- Listing definitions.
GET /events/2026-03/event-definitions:
"results": [
{
"labels": {
"singular": "This is my event",
"plural": "This is my event"
},
"name": "this_is_my_event",
"id": "203766427",
"fullyQualifiedName": "pe148543157_this_is_my_event",
}
]
- Push some events.
POST /events/2026-03/send {
"eventName": "pe148543157_this_is_my_event",
"objectId": "783099041997",
"properties": {}
}
- Query these custom events.
| * AMPERSAND-event-occurrences-e_mta_bounced_email_v2 | ||
| * AMPERSAND-event-occurrences-e_visited_page | ||
|
|
||
| Where to get the event type name: event type identifiers are returned by the Events API's [event types endpoint](https://developers.hubspot.com/docs/api-reference/latest/events/retrieve-events/get-event-types). |
There was a problem hiding this comment.
Could we add a sample integration for a timeline usecase? i.e. capturing notes, calls, a few marketing events and campaigns?
There was a problem hiding this comment.
This is present in the samples repo: https://github.com/amp-labs/samples/blob/94a3cf7778aa4a39121813cb6eefad47a2b5b28e/hubspot/amp.yaml#L89
Samples repo is always referenced from the docs:
docs/src/provider-guides/hubspot.mdx
Line 85 in cf92dc0
Do you want me to duplicate the definition
- objectName: AMPERSAND-event-occurrences-e_form_view_v2
mapToName: formViews
mapToDisplayName: "Form Views"
destination: defaultWebhook
schedule: "*/10 * * * *"
requiredFields:
- fieldName: objectId
- fieldName: objectType
optionalFieldsAuto: all
| * AMPERSAND-event-occurrences-e_call_ended | ||
| * AMPERSAND-event-occurrences-e_form_submission | ||
| * AMPERSAND-event-occurrences-e_mta_bounced_email_v2 | ||
| * AMPERSAND-event-occurrences-e_visited_page |
There was a problem hiding this comment.
I would instruct builders to check the spelling if they receive errors when deploying it (there are two c and two rs in the spelling)
edf04a8 to
e823ed6
Compare

Uh oh!
There was an error while loading. Please reload this page.