Templates / Update HubSpot contacts with Zendesk tickets

Update HubSpot contacts with Zendesk tickets

Needs changes

by n8n Team ✓ · 1,181 views · created 2022-12-23 · CRM

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function Item (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs on a schedule (legacy Cron node). Along the way it connects Zendesk and HubSpot.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Get last execution timestamp (Function Item): runs custom JavaScript per item (legacy Function Item node)
  2. Get tickets updated after last execution (Zendesk): get many
  3. Get user data of Ticket requester (Zendesk): get (user)
  4. Add user data (Merge): merges the data from its input branches
  5. Only keep needed data (Edit Fields (Set)): sets or maps fields
  6. Ticket Exists (If): checks a condition and branches into true / false
  7. Update existing ticket (HubSpot): update (ticket)
  8. Create or update contact (HubSpot): work with contact
  9. Set new last execution timestamp (Function Item): runs custom JavaScript per item (legacy Function Item node)
  10. Update External Id in Zendesk for contact (Zendesk): update (user)

…plus 2 more steps. See the full node list below.

Services it uses

ZendeskHubSpot

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function Item (legacy) in Get last execution timestamp, Set new last execution timestamp: replace with Code node, mode 'Run Once for Each Item'.
  • Cron in Every 5 minutes: replace with Schedule Trigger.
Removed in 3.0Replace with
Function Item (legacy)
Get last execution timestamp, Set new last execution timestamp
Code node, mode 'Run Once for Each Item'
Cron
Every 5 minutes
Schedule Trigger

Nodes used (7)

From the author

This workflow automatically syncs your Zendesk tickets to your HubSpot contacts. Every 5 minutes, your Zendesk account collects all the new or updated tickets and syncs them accordingly, with your HubSpot contacts database. Prerequisites - Zendesk account and…

Excerpt from n8n Team's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.