Skip to content

CRM records and relationships

Find or create a contact company

Matches a contact to a company by domain, optionally creates it, then associates it.

Available recipeIncludes configuration, sample data and tests

Make it your own

Review the setup and limits below, then open an editable copy in Turbyn.

Use this recipe

Your selection stays with you through signup.

What it does

Domain is the trusted match key; ambiguity is surfaced.

What to customize

Preserve existing company associations by default; creation must also be explicitly enabled in the event.

Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.

Expected outcome

This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.

Sample input

sample-input.json

{
  "inputFields": {
    "field1": "{\"contactId\": \"101\", \"domain\": \"example.com\", \"createIfMissing\": false}"
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "dry_run",
    "output2": "",
    "output3": "No company or association created."
  }
}

Returned fields

output1
matched, created, unmatched or ambiguous
output2
company ID
output3
association detail

What changes when it runs

Searches companies, may create one, and writes contact-company association via HubSpot APIs.

Ready to try it with your rules?

Map your inputs, test a sample and publish the version you’ve checked.

Use this recipe