Sub topic 3
The activity types you can log
An activity is a record of something that happened, or is going to happen, on a deal. This chapter covers the types of activity both CRMs let you log, how each one is stored, and how to choose the right one. It assumes you know what a deal, contact and company are, and that you've seen the deal and pipeline model from the previous chapters. How to link activities to records gets its own chapter, so this one mentions links only where they affect the choice of type.
The five types and what each one records
Salesforce and HubSpot both use the same five everyday types:
- Call: a phone or voice conversation, or an attempt at one.
- Email: a message sent to or received from a contact.
- Meeting: a scheduled conversation with a start and end time, in person or on video.
- Note: free text with no time commitment, used for context that doesn't fit the other types.
- Task: a to-do with a due date and an owner. It describes work in the future.
The first four describe the past, though a meeting can also be scheduled for the future. A task describes work that still needs doing. Teams often confuse these two directions, and that confusion is the most common cause of messy activity data.
| Type | Time orientation | Key fields | Typical use |
|---|---|---|---|
| Call | Past (or attempted) | Subject, outcome, duration, direction | Discovery calls, follow-ups, voicemails |
| Past | Subject, body, direction, sender, recipients | Proposals, replies, intros | |
| Meeting | Future, then past | Title, start, end, attendees, location | Demos, reviews, kickoffs |
| Note | Past | Body, timestamp | Context, internal observations, call summaries |
| Task | Future | Subject, due date, status, owner, priority | Send pricing, book a security review |
How Salesforce stores activities
Salesforce has two activity objects, and the rest are variations of them.
- Task holds to-dos, logged calls, and logged emails. A call is not a separate object. It is a Task whose
TaskSubtypeisCall. The olderTypepicklist field may also sayCall, butTaskSubtypeis the field the platform sets for you in the UI. - Event holds calendar items: meetings, demos, and anything with a start and end time.
Two other record types matter:
- EmailMessage stores emails when Enhanced Email is turned on. Without it, a logged email is a Task with the subtype
Email. - Notes are not activities in the strict sense. Enhanced Notes are stored as
ContentNotefiles, and the legacyNoteobject uses aParentIdfield. Both appear on the record page, but neither appears in the activity timeline's open and history lists the way Tasks and Events do.
Salesforce also splits activities by state, not only by type. An open Task or a future Event sits in the OpenActivities relationship. Once a Task is completed or an Event's date has passed, it moves to ActivityHistories. The same record is in one list or the other depending on its state, so a query for "everything on this deal" has to read both.
SELECT Id, Name, StageName,
(SELECT Subject, ActivityDate, Status FROM OpenActivities),
(SELECT Subject, ActivityDate FROM ActivityHistories)
FROM Opportunity
WHERE Id = :opportunityIdHere is a completed call logged in Apex. It shows the fields that identify the type and the links to the deal and contact.
Task t = new Task(
Subject = 'Discovery call with Dana Lee',
TaskSubtype = 'Call',
Status = 'Completed',
ActivityDate = Date.today(),
Description = 'Confirmed budget owner. Next step: send pricing by Friday.',
WhatId = opportunityId,
WhoId = contactId
);
insert t;WhoId points to a person (a Contact or Lead). WhatId points to a non-person record such as an Opportunity or Account. Both are polymorphic, which means one field can reference several object types.
How HubSpot stores activities
HubSpot gives each type its own CRM object, and they are all called engagements: calls, emails, meetings, notes, and tasks. They share the same API pattern (/crm/v3/objects/<type>) and the same association mechanism as deals and contacts. HubSpot also has a communications object for channels such as SMS, WhatsApp, and LinkedIn messages.
Each object has its own property names, all prefixed hs_. These are the ones you will use most:
| Object | Common properties |
|---|---|
| Notes | `hs_timestamp`, `hs_note_body` |
| Calls | `hs_timestamp`, `hs_call_title`, `hs_call_body`, `hs_call_direction`, `hs_call_duration` (in milliseconds) |
| Emails | `hs_timestamp`, `hs_email_subject`, `hs_email_text`, `hs_email_direction` |
| Meetings | `hs_timestamp`, `hs_meeting_title`, `hs_meeting_start_time`, `hs_meeting_end_time`, `hs_meeting_outcome` |
| Tasks | `hs_timestamp` (the due date), `hs_task_subject`, `hs_task_body`, `hs_task_status`, `hs_task_priority`, `hs_task_type` |
Note that hs_timestamp means different things. For a note, call, email or meeting it is when the activity happened. For a task it is when the task is due.
Here is a task created and linked to a deal in one request. The association type ID 216 is HubSpot's built-in "task to deal" association.
import os
import requests
url = "https://api.hubapi.com/crm/v3/objects/tasks"
headers = {
"Authorization": f"Bearer {os.environ['HUBSPOT_TOKEN']}",
"Content-Type": "application/json",
}
body = {
"properties": {
"hs_timestamp": "2026-12-04T15:00:00Z",
"hs_task_subject": "Send pricing to Dana Lee",
"hs_task_body": "Include the annual and multi-year options.",
"hs_task_status": "NOT_STARTED",
"hs_task_priority": "HIGH",
"hs_task_type": "TODO",
},
"associations": [
{
"to": {"id": os.environ["DEAL_ID"]},
"types": [
{"associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 216}
],
}
],
}
resp = requests.post(url, headers=headers, json=body, timeout=30)
resp.raise_for_status()
print(resp.json()["id"])The association type ID depends on both the activity type and the record it links to. A note linked to a deal uses 214, as in the earlier examples, and a task linked to a deal uses 216. Look up the ID for each pair in HubSpot's association documentation or through the associations API, and don't reuse one ID across types.
Mapping the two CRMs
The same real-world event lands in different structures. This mapping is the one to keep in your head when you work in both systems.
| Real-world event | Salesforce | HubSpot |
|---|---|---|
| Phone call | Task with `TaskSubtype = Call` | `calls` object |
| Sent or received email | `EmailMessage`, or Task with subtype `Email` | `emails` object |
| Calendar meeting | Event | `meetings` object |
| Free-text note | `ContentNote` or legacy `Note` | `notes` object |
| Future to-do | Task (open) | `tasks` object |
| Link to a person | `WhoId` | Association to a contact |
| Link to a deal | `WhatId` (Opportunity) | Association to a deal |
Choosing the right type
When you log something by hand, ask two questions in order.
- Has it happened, or must it still happen? If it must still happen and someone owns it, log a task. If it has happened, pick from call, email, meeting or note.
- Does it have a natural form? A conversation you had by phone is a call. A calendar slot with attendees is a meeting. Only use a note when nothing else fits, such as an internal observation or a summary of an unlogged chat.
Some cases are less obvious:
- A call you booked, then held. Log the booking as a meeting or event (or a task if it is just a reminder), then log the call itself afterward. Do not edit one record to cover both, or your history shows no sign of the original plan.
- A voicemail. Log it as a call with the outcome set to something like "left voicemail" or "no answer". Do not skip it. Attempt counts feed reports on contact effort.
- A follow-up you promised. Create a task for it, and also write the promise in the call's notes. The task drives the work. The note keeps the context.
- An internal discussion about a deal. Use a note. It has no external participant, so a call or meeting would distort connection and engagement counts.
Edge cases and failure modes
Completed tasks pose as calls. In both CRMs a team can log calls as generic tasks. In Salesforce the activity then shows TaskSubtype = Task and call reports miss it. In HubSpot, a task with hs_task_type set to CALL is still a task. It does not count as a call in call reports. Use the real call type when you want call metrics.
Time zones shift dates. Salesforce ActivityDate is a date with no time zone. Salesforce also has a separate time field on Events, StartDateTime. HubSpot timestamps are UTC, with or without milliseconds depending on the API. A call logged near midnight in your time zone can appear on the previous or next day in a report. Pass explicit UTC values when you log through the API.
Events move to history automatically. In Salesforce, a past Event drops out of OpenActivities without anyone completing it. A report on "open activities" therefore will not show last week's meeting, and it won't show a Task that someone completed. Report on ActivityHistories for those.
Email logging may be partial. A manually logged email stores whatever you paste into it. Synced email, covered in a later chapter, stores the real message. If you log by hand and sync is also on, you can create a duplicate for one email. Choose one route per team.
Visibility differs by type. Notes and emails often contain sensitive information, and each CRM lets admins limit who can see them. Salesforce controls activity access with sharing rules and the "Activity Access" setting. HubSpot uses team and user permissions on each object. If a rep says "I logged it but nobody can see it," check visibility before you check the data.
Required fields vary. Both CRMs let admins make fields mandatory, such as an outcome on a call. An API call that omits the field fails validation. Read the error message, because it names the missing field.
Working through a deal
Here is how the types combine over the life of one deal, "Acme - Annual Platform License":
- A rep holds a discovery call and logs a call with the outcome "Connected" and the note "Budget owner confirmed."
- The rep creates a task, "Send pricing," due Friday, owned by themselves.
- On Friday the rep sends the proposal. The email is logged, and the task is marked complete.
- The rep books a security review for Dec 4. It is logged as a meeting with the prospect's IT lead as an attendee.
- After the meeting, the rep adds a note listing the open security questions, and a new task for each one.
Five types are used, each for what it does best. Later, a manager can count calls, check which tasks are overdue, and read the notes, all from one deal record.
Exercise
A rep finishes a 20-minute video demo that was on the calendar, then promises the buyer a written security summary by Thursday. Which activity types should they log in HubSpot, and which Salesforce object does each map to?
Show answer
Log the demo as a meeting, which is a meetings record in HubSpot and an Event in Salesforce. Log the promise as a task due Thursday, which is a tasks record in HubSpot and an open Task in Salesforce. Optionally add a note with the demo's key points (a notes record in HubSpot, a ContentNote in Salesforce). The meeting records the past, and the task is the only item that describes future work.
Exercise
A Salesforce report on "open activities" for last month's deals shows no completed calls, even though reps logged many. Why, and how do you fix the report?
Show answer
Completed Tasks and past Events move from OpenActivities to ActivityHistories, so an open-activities report cannot show them. Switch the report or query to the activity history relationship, or use an activity report that includes both states. Also check that the calls were logged with TaskSubtype = Call, or call-based filters will miss them.
Exercise
In HubSpot, a task's hs_timestamp is "2026-12-04T15:00:00Z". What does that value mean, and how would it differ on a note?
Show answer
On a task it is the due date and time. On a note it is when the note's event happened, not a due date.