HubSpot step: add or update a contact
Add a contact to HubSpot by email, or update it when it's already there, with a private app token. Scopes, the properties you can set, output and limits.
Updated
Add or update a HubSpot contact puts a contact in your HubSpot CRM by email: when a contact with that email is already there, its properties are updated; when there isn't one, it's added. One step covers “form to HubSpot” without duplicates.
How to set it up
- In HubSpot, open Settings → Integrations → Private apps and create an app. Under Scopes, give it
crm.objects.contacts.readandcrm.objects.contacts.write. Copy its access token: it starts withpat-. - In Foliot, add the step, add a HubSpot connection and paste the token. Foliot asks HubSpot for one contact before saving, so a mistyped token or a missing scope is refused right there. It's stored encrypted. If you rotate the token later, paste the new one with Replace token on the Connections page: the steps using it keep working, and a connection HubSpot stops accepting shows Needs reconnecting and emails you once.
- Fill in Email (usually a chip from your form or webhook, with + Data) and any of First name, Last name, Phone and Company. Then Test this step: it adds or updates a real contact.
Other properties
- More properties takes up to 5 other contact properties, including your custom ones, by their internal name: in HubSpot, Settings → Properties, open the property and copy the name under its label (
lead_source,hs_lead_status,jobtitle,website…). - Values are sent as text. A dropdown or radio property takes one of its options' internal values; a date property takes a date like
2026-10-18; a yes/no onetrueorfalse. A chip holding a list is joined with;, the way HubSpot separates the values of a multiple checkboxes property. - Empty fields are left as they are in HubSpot, so an update never blanks a property.
- Output:
id(the contact's record ID),created(truewhen the contact was new) andpropertiesas HubSpot returned them.
Limits
- Contacts only: no companies, deals or tickets, no associations, and no HubSpot triggers.
- A value HubSpot refuses (a property that doesn't exist, an option that isn't one of the property's, an email HubSpot considers invalid) fails the run with HubSpot's own words, naming the property.
- Adding or updating by email does the same thing when repeated, so when HubSpot is rate limiting, unreachable or having trouble, the step is retried after 30 seconds, 2 minutes and 10 minutes.
- The contacts live in your HubSpot account, not in Foliot.