Sub topic 5
Keeping deal stage, amount and close date current
This chapter assumes you know what a deal (HubSpot) or opportunity (Salesforce) is, and that deals move through the stages of a pipeline. It also assumes you know that a deal is linked to contacts and a company. Here you will learn how to keep the three fields that drive forecasts accurate: stage, amount, and close date. The chapter also covers what each CRM does when those fields change, and the errors that most often corrupt them.
Why these three fields matter
Most pipeline reports and forecasts are built from three fields:
- Stage says how far the deal has progressed. Each stage usually has a win probability attached.
- Amount says how much revenue the deal represents.
- Close date says when you expect the deal to be won or lost.
A forecast multiplies amount by stage probability and groups the result by close date. If any one of the three is stale, the forecast is wrong. A deal that sits in "Proposal" with a close date three months in the past still counts toward the pipeline, even if the buyer stopped replying weeks ago.
The terms differ between the two CRMs.
| Concept | Salesforce | HubSpot |
|---|---|---|
| Record type | Opportunity | Deal |
| Stage field | `StageName` | `dealstage` |
| Amount field | `Amount` | `amount` |
| Close date field | `CloseDate` | `closedate` |
| Win probability | `Probability`, set by the stage | `hs_deal_stage_probability`, set by the stage |
| Pipeline | Sales Process, plus record types | Pipeline object, each with its own stages |
| Closed states | `IsClosed`, `IsWon` | Stage metadata `isClosed`, `probability` |
Field names in the table are the standard ones. Your admin may have added custom fields, such as a separate "Renewal amount", so check what your own account uses.
Stage: moving a deal forward
A stage change should record something that happened. It should not record a hope. Most teams agree on exit criteria for each stage, which are facts the buyer has confirmed before the deal moves on. A typical set looks like this.
| Stage | Example exit criterion |
|---|---|
| Qualified | Budget owner and a business problem are confirmed |
| Demo completed | The buyer has seen the product and named next steps |
| Proposal sent | A priced proposal is in the buyer's hands |
| Negotiation | The buyer has responded to pricing or terms |
| Closed won | A signed order or contract is received |
| Closed lost | The buyer has declined or stopped responding, and a loss reason is recorded |
Move a deal when the exit criterion is true, and do it the same day. A short note on the deal explaining why it moved helps whoever reads the record later.
Moving backward
Deals sometimes go backward, for example when a buyer reopens scope after a proposal. Moving the stage back is correct, because it keeps the pipeline honest. Both CRMs keep a history of stage changes. Salesforce tracks StageName changes in Opportunity History, and HubSpot stores the date each stage was entered in properties such as hs_date_entered_<stageId>. Because the history is kept, you lose nothing by correcting a stage.
Closed stages
Closing a deal usually requires extra information.
- Closed won: confirm the final amount and set the close date to the real signing date.
- Closed lost: pick a loss reason. Many teams make this required with a validation rule (Salesforce) or a required property on stage entry (HubSpot).
In Salesforce, a closed opportunity may be locked for some profiles. If you cannot edit a closed deal, ask your admin rather than looking for a workaround.
Amount: what number to enter
Pick one definition of amount and use it for every deal. Common choices are first-year contract value, total contract value, and annual recurring revenue (ARR). Mixing them makes totals meaningless. Two reps who enter $48,000 for a one-year deal and $144,000 for a three-year deal, with no field to tell them apart, produce a pipeline total nobody can interpret.
Rules that hold up well:
- Enter the amount as a plain number, with no currency symbol or commas in an API payload. HubSpot's
amountis sent as a string such as"48000". - Know your currency setup. If multicurrency is on, Salesforce stores the amount in the record's currency and converts it for reports using stored exchange rates. In HubSpot, the deal has its own currency code, and the account has a home currency used for rollups.
- Update the amount when scope changes, such as added seats or a discount. Do not wait for the contract.
- If the deal has line items (Salesforce Opportunity Products, HubSpot line items), the amount is often computed from them. In Salesforce, once products are added,
Amountbecomes read-only on the page and reflects the sum of the product lines. Edit the lines, not the total.
Do not use amount as a placeholder
A deal entered with Amount = 0 or a made-up round number distorts weighted pipeline. If the amount is unknown, use a rough estimate and say so in a note, or leave the field empty if your reports handle blanks. Pick one approach per team.
Close date: a prediction that needs maintenance
The close date is the date you expect the deal to be won or lost. It is a forecast, so it should move when your expectation moves.
Two behaviors cause most close-date trouble:
- Past-due open deals. The date passes, the deal stays open, and nobody changes it. Reports for "this month" then miss the deal, and reports for "overdue" fill with noise.
- Pushing without a reason. A close date that moves forward every month signals a deal that is not really progressing. Salesforce tracks the number of close date pushes in the standard
PushCountfield. HubSpot users can build a similar signal from property history.
A practical routine is a weekly pipeline review. For each open deal, check these four questions.
- Did anything happen since the last update (call, email, meeting)? If not, why not?
- Does the stage match what the buyer has actually done?
- Does the amount match the latest scope?
- Is the close date still realistic, given the buyer's own timeline?
Closed deals work differently. When you mark a deal won or lost, the close date should be the day it actually happened. Both CRMs may fill this in for you on closing, but check it, because it feeds reports on sales cycle length.
Updating fields through the API
You can create and update deals from scripts, integrations, or other systems. The HubSpot example below creates a deal in the default pipeline. Stage values are internal IDs, and they can differ if your pipeline has been customized, so check them in your account first.
import os
import requests
url = "https://api.hubapi.com/crm/v3/objects/deals"
headers = {
"Authorization": f"Bearer {os.environ['HUBSPOT_TOKEN']}",
"Content-Type": "application/json",
}
body = {
"properties": {
"dealname": "Acme - Annual Platform License",
"amount": "48000",
"pipeline": "default",
"dealstage": "appointmentscheduled",
"closedate": "2026-12-31T00:00:00Z",
}
}
resp = requests.post(url, headers=headers, json=body, timeout=30)
resp.raise_for_status()
print(resp.json()["id"])To change an existing deal, send a PATCH request to /crm/v3/objects/deals/{dealId} with only the properties that changed. The sketch below moves a deal to a new stage and sets a new close date. It reads the deal ID and stage ID from environment variables, and you must supply a valid internal stage ID from your own pipeline.
import os
import requests
deal_id = os.environ["DEAL_ID"]
url = f"https://api.hubapi.com/crm/v3/objects/deals/{deal_id}"
headers = {
"Authorization": f"Bearer {os.environ['HUBSPOT_TOKEN']}",
"Content-Type": "application/json",
}
body = {
"properties": {
"dealstage": os.environ["NEW_STAGE_ID"],
"closedate": "2027-01-15T00:00:00Z",
}
}
resp = requests.patch(url, headers=headers, json=body, timeout=30)
resp.raise_for_status()
print(resp.json()["properties"]["dealstage"])In Salesforce, the equivalent change is a DML update. This Apex snippet moves an opportunity and shifts its close date.
Opportunity opp = [
SELECT Id, StageName, CloseDate
FROM Opportunity
WHERE Id = :opportunityId
];
opp.StageName = 'Negotiation/Review';
opp.CloseDate = Date.today().addDays(21);
update opp;Negotiation/Review is a standard stage name in a default Salesforce org. Your org may use different names, and the value must match an active entry in the Stage picklist, or the update fails.
Why API updates fail
| Symptom | Likely cause |
|---|---|
| HubSpot returns 400 with an invalid option for `dealstage` | The stage ID belongs to a different pipeline, or you sent the stage label instead of the ID |
| Salesforce `INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST` | The stage name does not match an active picklist value |
| Salesforce `FIELD_CUSTOM_VALIDATION_EXCEPTION` | A validation rule blocks the change, for example a missing loss reason |
| `401` or `INVALID_SESSION_ID` | The token has expired or lacks access |
| Close date saved with a different day | A time zone shift. HubSpot date properties expect midnight UTC |
Whatever the failure, read the error body. Both APIs return the field name and the rule that rejected the change.
Seeing what changed
After an update, verify it. This query returns an opportunity with its open and completed activities, so you can confirm the stage and close date match what was logged.
SELECT Id, Name, StageName, CloseDate,
(SELECT Subject, ActivityDate, Status FROM OpenActivities),
(SELECT Subject, ActivityDate FROM ActivityHistories)
FROM Opportunity
WHERE Id = :opportunityIdIf the stage is "Negotiation" but the history shows no activity for six weeks, either the stage is wrong or the logging is incomplete. Both are worth fixing.
How the pieces interact
The three fields affect each other. A stage change often implies a new close date and sometimes a new amount.
Log the activity in the same sitting. A stage change with no activity behind it is hard to audit, and an activity with no field update leaves the deal looking untouched.
Common mistakes
- Skipping stages to reach "Closed won". This breaks conversion reports and sales cycle length per stage.
- Leaving close dates in the past. Set a recurring reminder, or build a report of open deals with a past close date.
- Changing amount after closing to "fix" revenue. Finance may reconcile against the closed value. Agree on a correction process first.
- Editing the stage label in an integration. Always use the internal value, since labels can be renamed by admins.
- Overwriting fields from a sync. If an outside tool writes to the same field, one source of truth will lose. Decide which system owns each field.
Check your understanding
Exercise
A deal worth $48,000 is in "Proposal sent" with a close date two weeks ago. The last logged activity is five weeks old. List the checks you would make before changing any field, and name one field change that is likely to be needed.
Show answer
Contact the buyer or check recent email to learn where the deal stands. Ask whether the proposal was received, and whether the buyer's timeline changed. Confirm the amount still matches the proposal. If the buyer is still engaged, move the close date to a realistic future date and log a note giving the reason and next step. If the buyer has gone quiet and cannot be reached, consider moving the stage back or marking the deal closed lost with a reason. The close date must change in either case, because it is in the past while the deal is open.
Exercise
Your integration sends "dealstage": "Closed Won" to HubSpot and receives a 400 error. What is the most likely cause, and how do you fix it?
Show answer
HubSpot expects the internal stage ID, not the display label. For the default pipeline the won stage ID is closedwon, but customized pipelines can use numeric or generated IDs. Look up the pipeline's stages through the account settings or the pipelines API, then send the ID that belongs to the same pipeline as the deal.