StyloDocs
Workflow blocks

Get Companies

List HubSpot companies (or fetch one by ID/domain)

View as Markdown

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

FieldTypeRequiredDefaultDescription
companyIdOrDomaintext (supports references)NoOptional HubSpot company ID or domain to fetch a single company. Leave empty to list companies. Accepts literal text or <StepName.field>.
limitnumberNo100Maximum 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>.

NameTypeDescription
successbooleanOperation succeeded
resultjsonCompanies data
errorstringError 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 error output is populated; downstream blocks that reference other outputs may not receive values.

On this page