Sub topic 8
Email and Calendar Sync
This chapter covers how Salesforce and HubSpot capture emails and meetings automatically, what the sync does and does not log, and how to fix the usual problems. It assumes you know the CRM data model from earlier chapters: contacts, companies, deals or opportunities, activity types, and associations.
Why automatic capture exists
Manual logging depends on memory and discipline. Reps forget, and the missing activity is usually the one a manager needs when reviewing a deal. Email and calendar sync reduces that gap by copying messages and meetings from the rep's mailbox and calendar into the CRM.
Sync does not replace manual logging. A sync can record that a meeting happened. It cannot record that the buyer confirmed budget, or what the next step is. Those facts still need a human note, which the chapter on writing useful activity records covers.
What gets synced
Both CRMs connect to a rep's Google Workspace or Microsoft 365 account through an authorized connection. Once connected, they can do three things.
- Email logging: messages sent to or received from a known contact are saved as email activities.
- Calendar logging: meetings on the rep's calendar with a known contact become meeting or event activities.
- Contact and event sync: some setups also copy contacts or calendar events in the other direction.
The two products use different names for the same ideas.
| Concept | Salesforce | HubSpot |
|---|---|---|
| Mailbox and calendar connection | Einstein Activity Capture or Salesforce Inbox, depending on your license | Connected inbox and connected calendar |
| Email activity | EmailMessage or an email entry in the activity timeline | Email engagement on the timeline |
| Meeting activity | Event | Meeting engagement |
| Matching a message to a record | Matches the sender and recipient addresses to Contacts and Leads | Matches addresses to Contacts, then to Companies and Deals through associations |
| Manual override | Log an email with an Outlook or Gmail add-in | Log to CRM button, or a BCC address |
Check which product your organization has licensed. Salesforce offers several capture tools, and they store data differently.
How the matching works
A synced email or meeting is not tied to a deal by magic. The sync follows a fixed sequence.
- The sync reads a message or meeting from the mailbox or calendar.
- It compares the participants' email addresses with contact email addresses in the CRM.
- If an address matches a contact, the activity is linked to that contact.
- The CRM then decides which deal or opportunity, if any, to attach the activity to.
Step 1 and step 2 are reliable when the data is clean. Step 4 is where most surprises occur.
The final decision point is the one to learn. Behavior varies by product and settings, but a common pattern is that an activity reaches a deal only when the CRM can tell which deal it belongs to. If a contact is on three open deals, the CRM often cannot choose, so the activity appears on the contact and company but not on any deal. Reps then wonder why the deal timeline looks empty.
You can reduce the problem in two ways. Associate every relevant contact with the right deal, and keep closed or abandoned deals closed so they do not compete for matches.
Salesforce: capture options and storage
Salesforce has more than one route, and the differences matter.
- Einstein Activity Capture syncs email and events. In many configurations, the captured activities are stored outside the standard Salesforce database and displayed in the Activity Timeline. They can be absent from standard reports and SOQL queries on
TaskorEvent. Confirm your own configuration before relying on them in reports. - Salesforce Inbox and the Outlook or Gmail integrations let a rep log an email to a record deliberately, which creates real Salesforce records.
- Email-to-Salesforce gives each user a private address. Blind-copy it on an email and the message is attached to matching records.
The storage point changes how you verify your work. The query from the chapter on checking data, which lists OpenActivities and ActivityHistories for an Opportunity, only returns records stored as standard Salesforce activities. If your organization uses a capture tool that stores data elsewhere, a clean timeline and an empty query result can both be correct at once.
A quick check for any user:
SELECT Id, Subject, ActivityDate, Type
FROM Task
WHERE WhatId = :opportunityId
ORDER BY ActivityDate DESCIf the timeline shows emails but this query returns none of them, the emails are probably not stored as Task records.
HubSpot: connected inbox and meetings
HubSpot treats email and meetings as engagements stored in the CRM, so they are available to reports, workflows, and the API.
- Connect the inbox. Go to your user settings, open the email section, and connect your Google or Microsoft account.
- Choose logging behavior. You can log and track all email with contacts, log only emails you choose, or log nothing automatically.
- Connect the calendar. Meetings with contacts then appear on the contact, company, and associated deals.
- Use the BCC or forwarding address for messages the connection missed.
HubSpot associates a logged email with the contact first. It then adds the contact's company, and it adds deals according to your association settings. Review those settings, because they decide whether a contact's email lands on every open deal or on none.
Privacy and what you control
Automatic capture reads real correspondence, so every setup needs a boundary. Decide these points before turning it on for a team.
- Which messages are shared. Options usually include sharing with everyone, sharing with the team, or keeping the content private while showing that the activity occurred. Pick the narrowest option that still gives managers what they need.
- Which domains are excluded. Add internal domains, personal contacts, and any domain subject to confidentiality rules to an exclusion list.
- Which users are connected. A manager's mailbox that includes sensitive HR or legal threads needs more care than a rep's.
- Retention. Check how long synced content is kept, and whether deleting it in the mailbox removes it from the CRM. Often it does not.
> Note on terms: the sharing options are named differently in each CRM, so use your admin's documentation for exact labels.
Common failures and how to diagnose them
Most sync problems fall into a small set of causes. Work through them in this order.
- The contact does not exist. Sync can only link to people in the CRM. A new stakeholder who has never been added produces no activity. Create the contact first, or enable the setting that creates contacts from emails if your policy allows it.
- The address does not match. The buyer wrote from a personal address, an alias, or a different domain than the one on the record. Add the extra address to the contact.
- The wrong person's calendar is connected. A meeting organized by a colleague appears only on the colleague's CRM user. Check whose calendar holds the invitation.
- Several open deals compete. As described above, the activity stays on the contact. Associate it manually, or tidy the deals.
- The connection expired. Passwords change, tokens expire, and admins revoke consent. Sync stops without a loud error. Look for a reconnect prompt in the user's settings.
- Excluded or private threads. A domain exclusion, a private-thread setting, or an internal-only rule silently drops the message.
- Duplicates. A rep logs an email by hand and sync logs the same email again. Pick one route per type of activity.
- Time zones. A meeting at 23:30 in one time zone can appear on the next date in another. Check the user's time zone setting before blaming the sync.
Choosing between manual, sync, and API
The three logging methods suit different jobs.
| Method | Good for | Weak at |
|---|---|---|
| Manual logging | Calls, in-person talks, outcomes, next steps | Volume, consistency |
| Email and calendar sync | Email threads and scheduled meetings, with little effort | Judgment, calls, deal-level accuracy |
| API logging | Data from other systems, such as a dialer or support tool | Setup cost, needs code and a token |
A practical default for a sales team:
- Let sync log emails and meetings.
- Have reps add a short note after meetings and calls stating the outcome and next step.
- Use the API only for systems that do not sync by themselves.
Verifying that sync works
Do this test whenever you connect a new user. It takes about ten minutes.
- Pick a contact who belongs to exactly one open deal.
- Send an email to that contact from the connected mailbox.
- Create a calendar invitation with the contact as a guest.
- Wait for the next sync, which can take several minutes.
- Open the contact. Confirm the email and meeting appear.
- Open the deal. Confirm they appear there too.
- Repeat with a contact who belongs to two open deals, and note where the activity lands.
Step 7 shows you your CRM's real association behavior, which no documentation can tell you as reliably.
Summary of rules
- Sync captures what happened, not what it meant.
- Matching depends on email addresses, so keep contact records complete.
- Deal-level attachment depends on association rules, so keep deals tidy.
- In Salesforce, confirm where captured data is stored before building reports on it.
- Agree on privacy settings with the team before enabling sync.
Exercise
A rep emails a buyer, Priya, every week. The email shows on Priya's contact record in HubSpot, but not on the "Renewal 2026" deal timeline. Priya is associated with that deal and with an older open deal named "Pilot 2025". What is the most likely cause, and what are two ways to fix it?
Show answer
The CRM cannot tell which of the two open deals the email belongs to, so it leaves the email on the contact and company. Fix it by closing "Pilot 2025" (or marking it lost or won) if it is finished, so only one open deal remains, or by associating the email with "Renewal 2026" by hand. You can also change the association settings, if your account allows it, so that logged emails attach to the deal you want.
Exercise
In Salesforce, the Activity Timeline on an Opportunity shows six emails, but the SOQL query on Task for that Opportunity returns none. Give one likely explanation and one way to confirm it.
Show answer
The emails were probably captured by a tool such as Einstein Activity Capture, which can store data outside the standard Salesforce activity records, so they do not appear as Task rows. Confirm it by asking an admin which capture tool and storage setting your organization uses, or by logging one email through the Outlook or Gmail add-in and checking whether that one appears in the query.