Workflow blocks
Get Companies
List HubSpot companies (or fetch one by ID/domain)
hubspot/get-companies — List HubSpot companies (or fetch one by ID/domain).
Where it appears
The Get Companies block lives in the Integrations group of the Workflow Builder. Connect the Hubspot integration before adding it.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
companyIdOrDomain | text (supports references) | No | — | Optional HubSpot company ID or domain to fetch a single company. Leave empty to list companies. Accepts literal text or <StepName.field>. |
limit | number | No | 100 | Maximum number of records to return when listing. Defaults to 100. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Get Companies.field>.
| Name | Type | Description |
|---|---|---|
success | boolean | Operation succeeded |
result | json | Companies data |
error | string | Error message if failed |
Example
A minimal configuration for this block:
{
"type": "hubspot/get-companies",
"config": {
"limit": 100
}
}Limits and failure modes
- Requires a connected Hubspot integration. Calls fail if that integration is disconnected or its authorization has expired.
- On failure the
erroroutput is populated; downstream blocks that reference other outputs may not receive values.