Skip to main content

Connect Cademy to HubSpot

Connect HubSpot with a Service Key, choose which contacts, companies, deals, course dates, registrations and emails sync, and fix sync problems.

Written by Artur Binzaru

This guide is for course providers who send contacts, organisations, orders, course dates, registrations and emails from Cademy to HubSpot, a customer relationship management system (CRM). It covers what syncs, how to fix sync problems, and the setup in order.

Connection: the link between your Cademy account and one HubSpot account, also called a portal. Module: one type of record you switch on or off, such as Contacts or Orders. Field mapping: the HubSpot property that receives a Cademy field.

​

If HubSpot is already connected and a record did not arrive or shows an error, see Fix HubSpot Sync Problems.

​


​

What You Need Before Connecting HubSpot

  • The HubSpot feature switched on for your Cademy account (Cademy does this). The ENTERPRISE and BETA labels on the HubSpot card do not show whether it is on; ask Cademy Support if you are not sure.

  • System Admin access in Cademy.

  • Super Admin or Developer tools access in the right HubSpot account, to create a Service Key.

  • For course dates and registrations, HubSpot Marketing Events. Cademy’s connection test says this needs Marketing Hub Professional or above.

Agree with your team which records you want in HubSpot, and check what is already there, before you connect.

​


​

How the HubSpot CRM Sync Works: One Way, from Cademy to HubSpot

Changes made in Cademy are sent to HubSpot; changes made in HubSpot are not sent back. Cademy does not delete HubSpot records: a deleted course date marks its event as cancelled. Turning off a module or disconnecting stops future syncing but does not undo data already sent.

​

What Cademy Sends to HubSpot (Contacts, Companies, Deals and Events)

In Cademy

In HubSpot

Default setting

Contacts

Contacts

On

Organisations

Companies

On

Orders

Deals

Off

Course Dates

Marketing Events

Off

Registrations

Marketing Event participant statuses

Off

Messages

Email activities on a contact's timeline

Off

​

Course Dates and Registrations use HubSpot Marketing Events, HubSpot’s event and participant records.

​

Do Existing Cademy Contacts Go into HubSpot When You Connect?

No. Saving a connection does not import existing records. Once the connection is Ready and a module is on, Cademy sends new records and changes. An existing record is sent when it changes, or when a syncing record needs it, such as the contact on a new order. There is no button to send all records. Do not bulk-edit records to force a sync; if you need older data in HubSpot, contact Cademy Support before connecting.

​

How Cademy Matches Records Already in HubSpot (Avoiding Duplicates)

HubSpot record

How Cademy finds it

Contact

Email address on the first sync, then the stored HubSpot Record ID

Company

Stored Record ID, or the cademy_organisation_id property

Deal

Stored Record ID, or the cademy_order_id property

Marketing Event

Cademy course date ID when created, then the stored Record ID

Participant status

The Marketing Event and the learner's email address

​

An existing HubSpot contact with the same email address is updated on the first sync. Existing companies and deals have no Cademy ID, so a similar name is not a match: reconcile them before turning on Organisations or Orders, or you will get duplicates. Every Ready connection receives changes, not only the Default one.

​


​

Fix HubSpot Sync Problems: See Sync Errors in Sync Activity and Retry

Sync Activity shows the records sent to one connection and the result of the last attempt. Select Apps, then HubSpot, select the connection, then Sync Activity.

​

The Sync Activity tab of the connection Main HubSpot Portal: the All Statuses filter and a list of orders, contacts and organisations, nine Synced and two Failed, with the columns Status, Object, Last attempted and Last error; each Failed row shows its error and a Retry button. The selected Sync Activity tab and the first Retry button are outlined.
  • It lists up to the 100 most recently updated records, with Status, the record and its HubSpot ID, Last attempted and Last error.

  • Filter by All Statuses (including Not attempted), Synced, Failed or Needs reconnect.

  • Records skipped before sending, such as contacts without an email address, are not listed, so an empty list does not prove everything was sent.

To retry a Failed row, fix the cause in Last error, select Retry, then check the row and the HubSpot record. Retry sends the record’s current data with current mappings, plus any contact, organisation or course date it needs, and no other records.

​

HubSpot Records Show Needs Reconnect: Update the Service Key

Needs reconnect means HubSpot no longer accepts the saved Service Key, for example because it expired, was rotated or was deleted. The connection shows Needs Reconnect on the HubSpot connections page. Cademy sends nothing to that connection until you update the key, as in Replace or Rotate a HubSpot Service Key. A missing scope shows as Failed instead, naming the scope.

​

Changes made in the meantime are not resent, and these rows have no Retry: a record is sent when it next changes. If records must reach HubSpot, send Cademy Support the list rather than editing records.

​

Contact or Registration Not Syncing to HubSpot

Check the contact or learner has an email address: HubSpot matches contacts and event participants by email, so records without one are skipped. If the record is listed, read its error; HubSpot can reject an email address another system accepted. After the first sync, Cademy updates the HubSpot contact it linked, even if the email changes; if that contact was deleted or merged, Cademy matches by email again.

​

Organisations or Orders Not Syncing to HubSpot (Matching Properties)

Companies and deals need the properties cademy_organisation_id and cademy_order_id (see the properties section below). If Cademy could not create them:

  • Check the Service Key has crm.schemas.companies.write and crm.schemas.deals.write.

  • In HubSpot, check whether a property already uses either internal name; it must be active, writable and unique.

  • Do not delete or rename the property to test a fix. Agree a repair with your HubSpot administrator and Cademy Support, then select Edit Connection in Cademy and test and update the connection.

A company updates when the organisation’s name or domain changes, organisations are merged or a related record syncs; other field edits do not always send an update.

​

Cademy Orders Not Showing as Deals in HubSpot

On the Orders module, check that a pipeline and all three stages are selected, Orders Sync is on and you selected Save. Older orders are sent only when they change. If no order syncs at all, check the matching properties.

​

Course Date Not Showing in HubSpot Marketing Events

HubSpot lists an event only once it has a registrant. In HubSpot, open Marketing, then Events (under More if needed), and search by name. If it is missing, check the date and its registrations in Sync Activity. Times are sent in UTC, so check HubSpot’s timezone if a time looks wrong.

​

Course Date Synced to HubSpot Without Its Learners

Check Course Dates and Registrations are both on and saved, and the learners have email addresses. On-demand registrations and registrations on a block itself are not sent. If a learner moves to a date that cannot sync, the old status can be cancelled with nothing added to the new event. Check both events: Synced alone does not confirm the learner is on the new event.

​

Emails Missing from the HubSpot Contact Timeline

Check Contacts and Messages are both on and the contact can be matched in HubSpot. Blocked messages and duplicate notifications for an Inbox message already logged are skipped on purpose.

​

Changed a HubSpot Mapping but Old Records Did Not Update

A saved mapping is used the next time each record syncs or is retried; older records are not resent. Removing a mapping does not erase the HubSpot value.

​

What to Send Cademy Support About a HubSpot Sync Problem

Send the connection name, the record, the status and full error from Sync Activity, and when you last tried. Never send your Service Key; Support does not need it.

​


​

Step 1: Create a HubSpot Service Key for Cademy

A Service Key is a secret credential that lets Cademy use parts of your HubSpot account; each permission on it is a scope. Treat it like a password. Cademy stores it encrypted. In HubSpot, select Development, then Keys, then Service keys (or see HubSpot’s Service Key guide).

  1. Select Create service key and enter a clear name, such as Cademy HubSpot Sync.

  2. Select Add new scope, then search for and select every scope in the table below.

  3. Select Update to close the scope picker.

  4. Check the scopes, select Create, then confirm when HubSpot asks.

  5. Open the new key if HubSpot returns you to the Service Keys list.

  6. Select Show, then Copy.

HubSpot Service Key Scopes Cademy Needs (14 Scopes)

Add all 14 scopes, including those for modules you may turn on later:

​

Used for

Scopes

Checking which HubSpot account the key belongs to

oauth

Contacts, and logging messages on their timeline

crm.objects.contacts.read, crm.objects.contacts.write, crm.schemas.contacts.read

Companies, and creating the property that matches Cademy organisations

crm.objects.companies.read, crm.objects.companies.write, crm.schemas.companies.read, crm.schemas.companies.write

Deals and pipelines, and creating the property that matches Cademy orders

crm.objects.deals.read, crm.objects.deals.write, crm.schemas.deals.read, crm.schemas.deals.write

Course dates and registrations (Marketing Events)

crm.objects.marketing_events.read, crm.objects.marketing_events.write

​

If you change the scopes later, test and save the connection again in Cademy. A passing test does not prove every write works, so check the first sync results.

​


​

Step 2: Install the HubSpot App in Cademy

  1. Log in to the Cademy admin dashboard as a System Admin, in the right course provider account.

  2. Go to Apps and select HubSpot.

  3. Read the summary, then select Install.

Cademy opens the HubSpot connections page. Installing sends no data.

​

Original Test Educator Apps screen with Apps and the HubSpot card highlighted.

​

Original HubSpot app installation summary with the Install button.

​


​

Step 3: Connect Your HubSpot Account (Portal) to Cademy

Important: Contacts and Organisations start switched on. Saving makes the connection Ready, so matching HubSpot contacts can be updated before you select Finish. Check for duplicates first.

  1. On the HubSpot connections page, select Connect Your First HubSpot Portal, or + Add Connection.

  2. In Connection Name, enter a name such as Main HubSpot Portal.

  3. Paste the key into Service Key and select Test & Continue. If the test fails, see the causes below.

  4. On the Verify step, check the Portal ID, the data location and the Marketing Events result.

  5. Select Save Connection, then Finish.

The Add HubSpot connection window on its Credentials step: Connection Name filled with Main HubSpot Portal, the Service Key box empty, and the buttons Back and Test & Continue; Test & Continue is outlined.

​

The Add HubSpot connection window on its Verify step: HubSpot connection succeeded, the Portal ID, Data hosted in and the Marketing Events result, and the buttons Back and Save Connection; the Portal ID and data location lines and Save Connection are outlined.

​

Check the connection is listed as Ready. Your first connection becomes the default. If saving shows an error, check the list before adding another, as part of the setup can already be saved.

​


​

Unable to Connect HubSpot to Cademy: Common Causes

If Test & Continue fails, or you cannot start the setup, check these causes.

​

Apps or HubSpot Is Missing in Cademy Admin

The Apps menu is shown only to System Admins; if it is hidden from your menu, look under More. If HubSpot is missing or cannot be installed, ask Cademy Support to check the HubSpot feature is on.

​

Cannot Create a Service Key in HubSpot

You need HubSpot Super Admin or Developer tools access, in the right HubSpot account. HubSpot only offers scopes your own user has, so if a scope is missing from the picker, ask a Super Admin to create the key.

​

HubSpot Connection Test Says a Scope Is Missing

The message names the scope. In HubSpot, open the Service Key, select Edit, add the scope and save, then select Test & Continue again. For a saved connection, use Edit Connection, test, then Update Connection and Finish.

​

Marketing Events Unavailable in the HubSpot Connection Test

Course dates and registrations cannot sync without it. Check the key has crm.objects.marketing_events.read and crm.objects.marketing_events.write, and HubSpot has Marketing Hub Professional or above. If the test says access is not established yet, HubSpot did not answer: test again later with Edit Connection, then send Cademy Support the exact message if it persists.

​


​

HubSpot Properties Cademy Creates to Match Companies and Deals

When you save the connection, Cademy creates these HubSpot properties if they are missing:

​

HubSpot object

Property label

Internal name

Company

Cademy Organisation ID

cademy_organisation_id

Deal

Cademy Order ID

cademy_order_id

​

They are unique single-line text properties holding Cademy record IDs, kept out of HubSpot forms. Do not edit, rename or remove them. If Cademy cannot create them, Organisations or Orders do not sync: see Fix HubSpot Sync Problems.

​


​

Step 4: Choose Which Records Sync to HubSpot

Select Apps, then HubSpot, and your connection. The Mappings page has one card per module. Open a module, select Save after any change, then reload to check it stayed.

​

The Mappings page of the connection Main HubSpot Portal: six module cards, Contacts, Organisations and Orders Enabled, Course Dates, Registrations and Messages Disabled, each with its number of mapped fields; the selected Mappings tab is outlined.

​

Sync Cademy Contacts to HubSpot CRM Contacts

On by default. Starting mappings: Email, First Name, Last Name, and Phone to Phone Number. Contacts without an email address are skipped. A contact is linked to its organisation’s company when Organisations is on. Deleting in Cademy does not delete in HubSpot.

​

Sync Cademy Organisations to HubSpot Companies

On by default. Starting mappings: Name to Company name and Primary Domain to Company Domain Name. Cademy also sends cademy_organisation_id. Deleting an organisation does not delete the company.

​

Map Organisation Key Contact Details to HubSpot Companies

In the Organisations module, the optional Cademy fields Key Contact Name, Key Contact Email and Key Contact Phone supply details of the organisation’s Key Contact. Add a mapping to a matching HubSpot company property, then select Save. These fields are not included in the starting mappings.

​

If an organisation has several Key Contacts, Cademy uses the one with the lowest internal contact ID, not a person you select in the mapping. If there is no Key Contact, or that person has no value for a mapped detail, Cademy clears the corresponding HubSpot property on the next organisation sync. Do not map a property that must retain a separately entered HubSpot value.

​

Send Cademy Orders (Bookings) to HubSpot as Deals

One order is one deal, even with several courses. Orders are off by default because deals affect your pipeline and reports. To turn them on:

  1. Open Orders and check the HubSpot pipeline under Deal Pipeline.

  2. Check Stage For Unpaid Orders (draft, awaiting approval or payment), Stage For Paid Orders (active, including access before payment) and Stage For Cancelled Orders (cancelled or fully refunded).

  3. Turn on Orders Sync and select Save.

The Orders module: the Orders Sync switch turned on, Deal Pipeline with Pipeline and the three stage selectors, Field Mappings with Add Mapping and three mapped fields, and Save at the top; the Orders Sync switch and Save are outlined.

​

Starting mappings: Order Reference to Deal Name, Total Cost to Amount and Close Date to Close Date (payment date, otherwise order date). Cademy sets the pipeline, stage and cademy_order_id. The cancelled stage wins over active; a partial refund alone does not move an order. When a contact or order moves to another organisation, Cademy adds the new company link but does not remove the old one; remove it in HubSpot if it should not show. Amounts are written in your HubSpot account’s currency, without conversion.

​

Sync Course Dates to HubSpot Marketing Events

Off by default, and needs both Marketing Events scopes. Open Course Dates, turn on Course Dates Sync, review the mappings and select Save. Starting mappings: Course Date Name to Event Name, Description to Event Description, Join URL to Event URL. Cademy sends times in UTC and the cancellation status. Each session in a block (sessions sold as one booking) syncs as its own event. HubSpot lists an event only once it has a registrant.

​

Sync Registrations as HubSpot Marketing Event Participants

Registrations are participant statuses: Registered, Attended or Cancelled, with no fields to map. Turn on and save Course Dates first, then turn on Registrations Sync and select Save.

  • Skipped: no learner email address, no course date (such as on-demand), or a block itself. A block’s sessions sync.

  • Attended follows Registered; Cancelled wins. There is no Absent status: an absent learner who is not cancelled stays Registered.

  • When a learner moves date, the old status is cancelled and the new one sent. Statuses are sent by email even when Contacts is off.

Log Cademy Emails on the HubSpot Contact Timeline (Messages)

Messages sync as email activities on the contact’s timeline: date, direction, sender, recipient, subject and a summary, with the text and a link for Inbox messages. Off by default because it can add many activities. Turn on and save Contacts Sync first, then Messages Sync. It does not send another email or track opens.

​


​

Step 5: Add or Change HubSpot Field Mappings

Important: Save changes in Map values can immediately change the choices of a shared Cademy dropdown or radio field, everywhere it is used.

  1. Open the connection’s Mappings and choose a module with its sync switch on.

  2. Select Add Mapping, then choose the Cademy Module, the Cademy Field and the HubSpot field.

  3. Where Map values is shown, pair the choices and select Save changes.

  4. Complete or remove unfinished rows, then select Save at the top.

Map fields of the same kind, and never map two Cademy fields to one HubSpot property. Create new field… creates a Cademy field at once; you still save the mapping. A change applies the next time each record syncs.

​


​

Step 6: Test the HubSpot Sync with a Test Contact

Agree the test with both account owners, as test records can affect reports and workflows.

  1. Create a test contact in Cademy with an email address you control.

  2. In HubSpot, open CRM, then Contacts, find it and compare the values.

  3. In Cademy, open the connection’s Sync Activity and check the contact shows Synced.

  4. Test each other module you turned on, one at a time.

If a result is unclear, see Fix HubSpot Sync Problems.

​


​

Replace or Rotate a HubSpot Service Key

  1. In Cademy, select Apps, then HubSpot.

  2. Open the connection's action menu and select Edit Connection.

  3. Paste the current or new Service Key and select Test & Continue.

  4. Check that the Portal ID matches the existing connection.

  5. Select Update Connection, then Finish.

The HubSpot connections page with two connections: Main HubSpot Portal, Ready and Default, and HubSpot Sandbox, Disconnected. The action menu of Main HubSpot Portal is open with Edit Connection, Set as Default and Disconnect; the menu button and the whole open menu are outlined together.

​

This also fixes Needs reconnect. A key for a different portal is rejected; add a separate connection for another portal. For planned rotation, choose HubSpot’s Rotate and expire later (the old key works for seven more days); if a key may be exposed, use Rotate and expire now and update Cademy at once. Mappings and modules are kept; older records are not resent.

​


​

Disconnect a HubSpot Account from Cademy

Select Apps, then HubSpot, open the connection’s action menu, select Disconnect and confirm. The connection is marked Disconnected and receives no further changes; records already sent stay in HubSpot. To reconnect, select Edit Connection and enter a valid Service Key.

​


​

Related Guides

​


​

Frequently Asked Questions

Can I connect more than one HubSpot account?
Yes. Select + Add Connection and use a Service Key from the other account. Every Ready connection receives changes for its enabled modules.

​

Will fixing the HubSpot Service Key sync the records that were missed?
No. Updating the key makes the connection Ready for new changes. Records are sent when they next change, or when you retry a Failed row.

Did this answer your question?