Guide
Connect HubSpot
ModuleX keeps HubSpot deals and quotes in step. A deal that reaches a stage you pick starts a draft quote, and each quote event you choose updates the deal's amount, stage and line items. An Owner or Admin connects it in Settings → Integrations in about ten minutes.
Open Integrations settingsUpdated · 6 min read
Who can connect HubSpot
- Your ModuleX workspace is on the Business or Enterprise plan. Other plans don't show the HubSpot row.
- You have the Owner or Admin role in the workspace. An IT admin can open the page and see the status, but can't connect, change settings or disconnect.
- In HubSpot, you sign in as a Super Admin, or a user with App Marketplace access, in the account your sales team uses.
Connect HubSpot
The sign-in must finish within 10 minutes, in the same browser. If you see “The sign-in expired or came from another browser. Try again.”, press “Connect” again.
- Open the page: sign in and go to “Settings” → “Integrations”. The HubSpot row is under CRM.
- Open the row: select HubSpot to open it. The “Setup guide” lists what you need and the permissions, and “Copy setup steps for IT” copies them for an email.
- Sign in to HubSpot: press “Connect”, pick your HubSpot account and approve the access HubSpot lists.
- Check the result: you're back in Integrations with the message “Set up the field mapping in its row.” and the row shows “Working”.
Connect with a service key instead
Use a key when your HubSpot admin prefers it, or when the HubSpot row has no Connect button. The key works the same way for syncing.
- Create the key in HubSpot: Development → Keys → Service keys → Create service key, or Settings → Integrations → Private apps.
- Give it the scopes listed under “Connect with a service key” in the HubSpot row, including contacts if new quotes should get the deal's contacts.
- Paste it: open “Connect with a service key”, paste the key in “Service key” and press “Connect”. It is stored encrypted and never shown again.
- Swap it later: paste a new key and press “Replace key”.
Choose what syncs
- Pick the quote events: under “Update the CRM when a quote is…”, tick the events that update the deal. Most teams tick sent, won and lost.
- Create deals if you want: tick “Create the CRM record when a quote has none”. Otherwise only quotes linked to a deal update HubSpot.
- Start quotes from HubSpot: under “Create a quote when a CRM deal reaches a stage”, tick On, then choose the “Stage that creates the quote”. HubSpot is checked every 5 minutes.
- Bring products and contacts: tick “Add the deal's products (matched to your catalog by SKU) and contacts to the new quote”.
- Close quotes from HubSpot: tick “When a deal is closed won or lost in the CRM, close its quote the same way”, then check the “Closed won stage” and “Closed lost stage”.
- Save: press “Save sync settings”.
- Map the fields: under “Deal fields”, keep the suggested rules (deal name with the quote number, amount from the quote total, and the stage moved by sent, won and lost), or add your own. “Line items (optional)” maps name, quantity and price.
- Check before saving: pick a quote under “Preview with a quote…”, press “Preview”, then press “Save mapping”.
- Test it: in “Sync log”, pick a quote and press “Send test”. It goes out within 5 minutes; open the deal in HubSpot to check it.
Bring HubSpot companies and products into your catalog
Once HubSpot is connected, the Sync from HubSpot panel in the same row reads HubSpot companies into your customer list, and products with their SKU, price and cost into your catalog. You see every new and changed record before anything is saved, and you can undo the import. Up to 5,000 records are read at a time.
Syncing products needs a permission that isn't switched on for every workspace yet. When it isn't, the row says so next to “Sync products”, and you can still sync customers. Products also need someone with access to costs and floors.
What syncs, and in which direction
Prices never come in from HubSpot: quote lines use your catalog prices, so floor checks and approvals still apply. Empty values never overwrite HubSpot fields. Products that aren't in your catalog are listed by name in the quote's history and never invented.
Quote amount, stage, name and any field you map
- Direction
- To HubSpot
- HubSpot
- Deal
- When
- On each quote event you tick
Quote lines (name, quantity, price, SKU)
- Direction
- To HubSpot
- HubSpot
- Deal line items
- When
- When the lines change
New deal
- Direction
- To HubSpot
- HubSpot
- Deal
- When
- Only with “Create the CRM record when a quote has none”
Draft quote with customer and deal name
- Direction
- From HubSpot
- HubSpot
- Deal at your start stage
- When
- Checked every 5 minutes
Quote lines from your catalog
- Direction
- From HubSpot
- HubSpot
- Deal line items, matched by SKU
- When
- With the new quote
Up to 10 contacts
- Direction
- From HubSpot
- HubSpot
- The deal's contacts
- When
- With the new quote
Quote won or lost
- Direction
- From HubSpot
- HubSpot
- Deal moved to a closed stage
- When
- Checked every 5 minutes
Customers and catalog items
- Direction
- From HubSpot
- HubSpot
- Companies and products
- When
- Only when you press Sync and apply
Permissions HubSpot asks you to approve
oauth
- Why
- Required by HubSpot for every app that signs in.
crm.objects.deals.read, crm.objects.deals.write
- Why
- Find the deal linked to a quote, update it, read deals at your start stage and create a deal if you turn that on.
crm.objects.line_items.read, crm.objects.line_items.write
- Why
- Read a deal's line items for a new quote, and replace them with the quote's lines.
crm.schemas.deals.read, crm.schemas.line_items.read
- Why
- List deal and line item properties, including custom ones, so you can map them.
crm.objects.contacts.read (optional)
- Why
- Add the deal's contacts to a new quote. Without it, the quote has no contacts.
crm.objects.companies.read, crm.schemas.companies.read (optional)
- Why
- Sync HubSpot companies into your customer list, and map companies.
crm.schemas.custom.read, crm.objects.custom.read, crm.objects.custom.write (optional)
- Why
- Only if you sync quotes to a custom object (Enterprise HubSpot accounts).
e-commerce (optional)
- Why
- Read HubSpot products for Sync products. Asked for only once product sync is switched on for the app.
Disconnect or uninstall
- Disconnect in the app: in “Settings” → “Integrations” → HubSpot, press “Disconnect” and confirm. The stored HubSpot sign-in is deleted and updates still waiting are cancelled.
- Uninstall in HubSpot if you like: in HubSpot, open Settings → Integrations → Connected apps, find the app and uninstall it. Syncing stops, and the row shows “Needs attention” until you press “Disconnect” or “Reconnect”.
- Keep your records: quotes and their history stay in the app, and deals stay in HubSpot.
Fix a connection that stopped working
Failed updates are retried for 7 days, and every change has a “Retry” button in “Sync log”.
“Sign-in expired. Reconnect to resume syncing.”
- What to do
- The HubSpot sign-in expired, was revoked or the app was uninstalled. Press “Reconnect” and sign in as a HubSpot Super Admin.
An update in “Sync log” failed with 403
- What to do
- The connected HubSpot user lost access to deals, or a permission wasn't approved. Reconnect with a Super Admin and approve every permission.
“Only company owners and admins can connect a CRM.”
- What to do
- Ask an Owner or Admin of the workspace to connect it.
“HubSpot rejected the key. Check it was copied in full and has the deal scopes.”
- What to do
- Copy the service key again in full, and check it has the deal and line item scopes.
A HubSpot property isn't in the mapping list
- What to do
- Press “Refresh objects and fields” after you add the property in HubSpot.
New quotes have no contacts
- What to do
- The optional contacts permission wasn't approved. Press “Reconnect” and approve it.
Deal line items didn't come across
- What to do
- The HubSpot product's SKU isn't in your catalog. Use the same SKUs in both, then press “Retry” on the change in “Sync log”.
What data is shared with HubSpot
Only the data in the table above moves, and only after an Owner or Admin connects. The HubSpot sign-in or service key is stored encrypted and is used only by the server. ModuleX reads HubSpot deals, line items, contacts, companies and products as described; it never reads emails, notes or other HubSpot data. Costs and margins stay in ModuleX unless you map them to a HubSpot field yourself.
Questions: email support@cpqmodulex.com.
Questions
- Does it work with HubSpot's free CRM?
- Yes, deals and line items are on every HubSpot plan. Custom objects need an Enterprise HubSpot account.
- Does HubSpot change my prices?
- No. Prices come from your catalog and the approved quote. HubSpot prices are never copied in.
- What happens to updates while the sign-in has expired?
- They wait and retry for 7 days. Reconnect within that time and they go through.