HubSpot

The HubSpot steps connect your workflows to your HubSpot CRM. They work with Contacts, Companies, Deals and Tickets.

Use them to start a workflow when a deal moves to a new stage, keep records up to date, look up CRM data for your documents, and log generated documents on a record's timeline.

Use Trigger to start from a CRM event, Write record to save data, Find records to read it, or Add activity to leave a note or task.

Example

A real estate agency tracks deals in HubSpot. The workflow:

  1. Starts with the HubSpot trigger when a deal's Deal Stage changes, only when it is Contract sent.
  2. Generates a purchase agreement with a Document step, using the deal's properties.
  3. Uses a HubSpot - Add activity step to add a note to the deal with the agreement attached.
  4. Uses another HubSpot - Add activity step to add a task for the agent: "Follow up on the signed agreement", due in 3 days.

Connect your account

  1. Add a HubSpot step and click Sign in under Account.
  2. Click Continue to HubSpot and approve the requested permissions.
  3. You return to the workflow editor with the account selected.

Installing the app requires a HubSpot super admin or the App Marketplace Access permission.

If a step needs permissions the account has not granted yet, it shows Additional permissions required. Click Grant access to reconnect.

Trigger

The HubSpot trigger starts a workflow when a record is created or changes.

SettingDescription
Account and ObjectThe HubSpot account and the object to listen to.
Start whenRecord created, or Property changed.
PropertyFor property changes, the property to watch. You can watch the lifecycle stage, lead status or owner of contacts, the lifecycle stage or owner of companies, the deal stage or owner of deals, and the ticket status or owner of tickets.
Records must match (optional)Conditions the record must match to start a run, for example a deal stage of Contract sent. Without conditions, every event starts a run.
Include new records (for Property changed)A new record also starts a run when it is created with the property set and matches the conditions. The output Event Type in this case is RecordCreated.
Properties to returnThe record properties available to later steps. Common properties are selected for you. Click Add property to add more.
Associated Records (optional)Include related records from your CRM. For example, when a deal changes, you can automatically include its associated contacts and company. For each object, choose the properties to include. Up to 25 associated records are retrieved per object (so a single deal can include up to 25 contacts and 25 companies).

Example: also read the contacts associated with each deal, with their names and emails.

The Associated Records setting of a HubSpot deal trigger, with Contacts checked and the First Name, Last Name, Email and Phone Number properties selected

The trigger only listens while the workflow is published. Each event starts one run with the record's latest values. To try the workflow before publishing, click Test in the workflow editor and pick a record.

Output variables: Record (the Record ID, Record URL, the selected properties and a list per associated object, such as Associated Contacts), Event Type, Event Time, Changed Property, Object Name and Object URL.

Write record

Creates or updates a record.

SettingDescription
Account and ObjectWhere to write.
ActionCreate record or Update record.
Record to updateFor updates, the conditions that find the record. Exactly one record must match. If more than one matches, the step fails.
If no record matchesFail the step, Create the record or Skip the step. A created record also gets the values from your "is" conditions, so it can be found next time.
Property valuesClick Add property and enter a value, a variable (type @) or a formula. When creating, set the properties HubSpot requires, such as a deal name. When updating, empty values leave the property unchanged.

For dropdown properties, enter the option label or pick it from the list. Multi-select properties take several options separated by commas.

Output variables: Record ID, Record URL, Object Name and Operation (Created, Updated or Skipped).

Find records

Finds the records that match your conditions.

SettingDescription
Account and ObjectWhere to search.
Properties to returnThe properties of each record available to later steps.
ConditionsChoose All conditions or Any condition, then click Add condition. With no conditions, every record matches.
SortingClick Add sort to order the results.
Maximum recordsUp to 1000 records. The default is 100.
When more records matchFail the step, or Return the first matching records.

If nothing matches, the step succeeds with an empty list.

Output variables: Records (a list with the Record ID, Record URL and selected properties of each record), Record Count, Has More, Object Name and Object URL.

Add activity

Adds a note or a task to a record's timeline.

SettingDescription
Account and ObjectWhere the record is.
ActivityNote or Task.
RecordThe conditions that find the record. Exactly one record must match.
If no record matchesFail the step or Skip the step.

For a Note:

SettingDescription
NoteThe note text. Type @ to insert variables.
AttachmentsDocuments generated earlier in the workflow. They are uploaded to a TemplateDocs folder in your HubSpot files.
AuthorA HubSpot user's name, email or ID.

A note needs text or at least one attachment.

For a Task:

SettingDescription
TitleRequired.
Due dateA date or date and time. Empty means due right away.
PriorityNone, Low, Medium or High.
Assigned toA HubSpot user's name, email or ID.
NotesExtra details for the task.

Output variables: Activity ID, Activity Type, Record ID, Record URL, Object Name and Operation (Added or Skipped).

Example: add a note with the generated purchase agreement to the deal identified by the trigger's Record ID.

Add a note with the purchase agreement attached to the existing HubSpot deal matched by the trigger's Record ID.

Credits

The HubSpot trigger is free (0 credits). Each HubSpot action step that runs (Write record, Find records or Add activity) costs 1 credit. See Credits.