Sub topic 11
Checking Your Data with Reports and Queries
Assume you know the basic CRM records: deals or opportunities, contacts, companies, and activities. You should also be comfortable opening a report and reading a simple query. Salesforce calls its deal record an Opportunity. HubSpot calls it a Deal. The checks are similar, but the field names and query tools differ.
A report answers questions for a team without requiring code. A query asks the CRM for exact records and fields. Use reports for regular monitoring and queries for investigation, integration checks, or one-off audits.
Start with a specific question
A useful data check has a clear question, a time range, and a record type. For example:
- Which open opportunities have no completed activity in the last 14 days?
- Which deals are closing this month but have no next-step task?
- Which activities are not associated with a deal or contact?
- Which opportunities have an amount but no expected close date?
- Which deals changed stage without a recent meeting or call?
These questions are better than a general request to “check CRM quality” because each one leads to a filter and an action.
Build a report
Create an open-deal report with fields such as:
| Field | Why include it |
|---|---|
| Deal or opportunity name | Identifies the record |
| Owner | Shows who must act |
| Stage | Shows the current lifecycle position |
| Amount | Supports pipeline totals |
| Close date | Shows timing and forecast risk |
| Last activity date | Shows recent engagement |
| Next-step task | Shows whether follow-up is planned |
Filter the report to open records. Add a close-date range, such as the current month or quarter. Group the results by owner or stage. Sort by the oldest last-activity date so neglected records appear first.
In Salesforce, an Opportunity report can include activity fields such as the last activity date and open activities. In HubSpot, use the report builder with deal properties and activity properties. Some activity fields depend on your subscription, permissions, or connected sales tools.
Trace a record with a query
When a report shows a suspicious record, inspect the record and its related activities. In Salesforce, SOQL is the query language for Salesforce records. This query returns an opportunity with its open and completed activities:
SELECT Id, Name, StageName, CloseDate,
(SELECT Subject, ActivityDate, Status FROM OpenActivities),
(SELECT Subject, ActivityDate FROM ActivityHistories)
FROM Opportunity
WHERE Id = :opportunityIdRun this in a Salesforce context that defines opportunityId, such as Apex code or a developer query tool that supports a bind variable. Compare the opportunity's stage and close date with its activities. A completed call with no useful description may technically satisfy an activity count while still failing the team's process.
HubSpot provides similar checks through its CRM search and reporting tools. Search deals by pipeline, stage, close date, or last-contacted property. Then inspect associated activities. Associations are important because an activity can exist without being connected to the deal that the salesperson intended to update.
Find common data problems
Use these checks when reviewing results:
- Missing association: The activity belongs to a contact but not to the deal. The activity may be invisible in deal-focused reports.
- Stale stage: The deal remains in an early stage after a later-stage meeting or proposal.
- Missing next step: The latest note describes an outcome but gives no owner or date for the next action.
- Incorrect date: The close date reflects hope rather than the agreed buying timeline.
- Duplicate activity: Automatic email capture and manual logging created two records for one interaction.
- Permission gap: Your report excludes records or fields that your user cannot view.
After correcting a record, rerun the same report or query. A data check is complete only when the result reflects the correction and the remaining exceptions have an assigned owner.
Exercise
An open deal closes in two weeks, has no activity in the last 30 days, and has no next-step task. What should you check first?
Show answer
Open the deal and verify its stage, close date, recent activity history, and associations. Then contact the owner or create an assigned follow-up task if the deal is still active.