HubSpot
BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”PortPilot replicates six HubSpot CRM objects with every property, including your custom properties, through HubSpot’s CRM Search API. After the first sync, only records modified since the last sync are read.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| Incremental sync | Yes | Records modified since the last sync. |
| Captures deletes | No | Records deleted in the source stay in the destination. |
| Custom fields | Yes | Every property, including custom ones, is a column. |
| Table selection | Yes | Choose which tables to sync. |
| New columns added automatically | Yes | Columns that appear in the source are added to the destination table. |
| Re-sync | Yes | A full refresh re-reads every selected table. |
Before you connect
Section titled “Before you connect”- Create a private app in HubSpot (Settings → Integrations → Private Apps) and give it
these scopes:
crm.objects.contacts.readcrm.objects.companies.readcrm.objects.deals.readticketse-commerce(line items and products)crm.schemas.contacts.read,crm.schemas.companies.read,crm.schemas.deals.read(property definitions)
- Copy the access token from the private app’s Auth tab.
Connect
Section titled “Connect”In the app, go to Connectors → New connector → HubSpot and click Test connection after filling in:
| Field | Required | Default | Description |
|---|---|---|---|
access_token |
Yes | — | Private app access token. Stored write-only in the data plane’s secret store. |
start_date |
No | all history | YYYY-MM-DD. The first sync reads only records modified on or after this date. |
Schema
Section titled “Schema”How the tables relate. Each arrow points from a column to the table it references. Only key, reference and cursor columns are shown; the data dictionary below has the rest.
erDiagram
products ||--o{ line_items : "hs_product_id"
contacts {
string id PK
string lastmodifieddate "cursor"
}
companies {
string id PK
string hs_lastmodifieddate "cursor"
}
deals {
string id PK
string hs_lastmodifieddate "cursor"
}
tickets {
string id PK
string hs_lastmodifieddate "cursor"
}
line_items {
string id PK
string hs_lastmodifieddate "cursor"
string hs_product_id FK
}
products {
string id PK
string hs_lastmodifieddate "cursor"
}
contacts
One row per contact.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
lastmodifieddatecursor | string | When the contact last changed (ISO 8601 text). |
email | string | Primary email. |
firstname | string | First name. |
lastname | string | Last name. |
lifecyclestage | string | Lifecycle stage, e.g. lead, customer. |
hubspot_owner_id | string | ID of the HubSpot user who owns the record. |
Main columns only. Other fields the source returns also land as columns.
companies
One row per company.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
hs_lastmodifieddatecursor | string | When the record last changed (ISO 8601 text). |
name | string | Company name. |
domain | string | Website domain. |
industry | string | Industry. |
hubspot_owner_id | string | ID of the HubSpot user who owns the record. |
Main columns only. Other fields the source returns also land as columns.
deals
One row per deal.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
hs_lastmodifieddatecursor | string | When the record last changed (ISO 8601 text). |
dealname | string | Deal name. |
amount | string | Deal amount (numeric text). |
dealstage | string | Internal ID of the deal stage. |
pipeline | string | Internal ID of the pipeline. |
closedate | string | Expected or actual close date. |
hubspot_owner_id | string | ID of the HubSpot user who owns the record. |
Main columns only. Other fields the source returns also land as columns.
tickets
One row per support ticket.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
hs_lastmodifieddatecursor | string | When the record last changed (ISO 8601 text). |
subject | string | Ticket subject. |
content | string | Ticket description. |
hs_pipeline | string | Internal ID of the pipeline. |
hs_pipeline_stage | string | Internal ID of the pipeline stage. |
hs_ticket_priority | string | Priority, e.g. HIGH. |
hubspot_owner_id | string | ID of the HubSpot user who owns the record. |
Main columns only. Other fields the source returns also land as columns.
line_items
One row per line item on a deal or quote.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
hs_lastmodifieddatecursor | string | When the record last changed (ISO 8601 text). |
name | string | Line item name. |
quantity | string | Quantity (numeric text). |
price | string | Unit price (numeric text). |
amount | string | Total amount (numeric text). |
hs_product_id→ products.id | string | ID of the product in the product library. |
Main columns only. Other fields the source returns also land as columns.
products
One row per product in the product library.
| Column | Type | Description |
|---|---|---|
idPK | string | HubSpot record ID. |
createdate | string | When the record was created (ISO 8601 text). |
hs_lastmodifieddatecursor | string | When the record last changed (ISO 8601 text). |
name | string | Product name. |
price | string | Unit price (numeric text). |
hs_sku | string | SKU. |
description | string | Description. |
Main columns only. Other fields the source returns also land as columns.
- HubSpot returns every property value as a string, so numbers and dates arrive as text.
- New properties, including custom ones, are added as columns on the next sync.
- Associations between objects (a contact’s companies, a deal’s contacts) aren’t replicated yet, so the diagram shows only the product reference on line items.
Sync behavior
Section titled “Sync behavior”- First sync: every record of each object (from
start_date, if set). - Later syncs: records modified at or after the newest modification time from the previous
sync, upserted on
id. Records at the boundary are re-read and de-duplicated. - Large objects: HubSpot’s search returns at most 10,000 results per query. PortPilot reads past that by restarting from the last modification time it has read, so objects of any size sync in full.
Common gotchas
Section titled “Common gotchas”- Deletes and archives aren’t replicated. Records deleted or archived in HubSpot stay in the destination.
- Rate limit is shared. HubSpot allows 5 search requests per second per account, shared
with your other integrations. PortPilot waits briefly when limited; if it lasts, the run
fails as
rate_limitedand retries on the next schedule. - Bulk imports with identical timestamps. If more than 10,000 records share exactly the same modification time (common after a bulk import or a workflow touching every record), the sync fails with an explicit error rather than skip records. Contact us if you hit it.
- Everything is text. Cast numeric and date properties in your warehouse.
- A missing scope fails that object with a 403. Add the scope to the private app; the token stays the same.