Sub topic 5
Keeping deal stage, amount and close date current
Assume you understand the basic B2B sales process and can navigate Salesforce or HubSpot. You should also be comfortable reading JSON. The examples use Salesforce’s Opportunity object and HubSpot’s deal object. These objects represent the same business idea, although the field names and stage values differ.
The three fields that drive forecasting
A deal record becomes useful when its core fields reflect the latest verified information.
| Field | Meaning | Update when |
|---|---|---|
| Stage | Where the deal is in the sales process | The buyer meets the criteria for a new stage |
| Amount | The expected value of the deal | Scope, price, quantity, or discount changes |
| Close date | When the deal is expected to finish | The buyer gives new timing or the plan changes |
A stage is not a personal confidence score. It should describe evidence in the buying process. For example, “Proposal” might require confirmed requirements and a proposal sent to the buyer. A seller should not move a deal to “Negotiation” merely because the buyer responded positively.
The amount should use one agreed convention. Decide whether it means total contract value, annual recurring revenue, or another measure. Apply the same convention across the pipeline.
The close date should be the expected decision or contract date, not the date of the next meeting. If the buyer has not confirmed a date, use the best evidence available and mark the uncertainty in the activity record.
A controlled update cycle
Use this sequence after a meaningful customer interaction:
flowchart TD
A[New customer evidence] --> B{Stage criteria met?}
B -->|Yes| C[Update stage]
B -->|No| D[Keep stage]
C --> E[Recheck amount]
D --> E
E --> F[Recheck close date]
F --> G[Log outcome and next step]
G --> H[Include reason for material changes]When a value changes, record why. A change from $48,000 to $36,000 could mean reduced scope, a discount, or a correction. Those explanations have different implications for management and forecasting.
A practical review asks:
- What new evidence supports the current stage?
- What products, quantities, terms, or discounts make up the amount?
- Who owns the next decision?
- What date is supported by the buyer’s process?
- What risk could move the date or amount again?
Updating records by hand
In Salesforce, edit the Opportunity fields Stage, Amount, and Close Date. In HubSpot, edit the deal’s dealstage, amount, and closedate properties. Select values from the configured pipeline rather than typing a display label into a free-text field.
Update the deal immediately after the call or meeting when the evidence is clear. If the evidence is incomplete, keep the current stage and create a follow-up task. This prevents optimistic stage movement based on weak signals.
A stage change may trigger automation. For example, moving to a proposal stage might create a legal-review task. Check the resulting tasks and notifications so that an incorrect stage does not start work for the wrong team.
Updating through the HubSpot API
HubSpot stage values are internal property values. They can differ from the labels shown in your account. Confirm the correct value in your pipeline settings before sending an update.
import os
import requests
deal_id = os.environ["DEAL_ID"]
token = os.environ["HUBSPOT_TOKEN"]
url = f"https://api.hubapi.com/crm/v3/objects/deals/{deal_id}"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json",
}
body = {
"properties": {
"dealstage": os.environ["HUBSPOT_STAGE_ID"],
"amount": "36000",
"closedate": "2026-12-31T00:00:00Z",
}
}
response = requests.patch(url, headers=headers, json=body, timeout=30)
response.raise_for_status()
print(response.json()["properties"])Send only fields that should change. Before updating, validate that the amount is numeric, the close date uses the expected time format, and the stage belongs to the deal’s pipeline. Keep the API token in an environment variable, never in source code.
Common errors and safeguards
- Moving every active deal to a late stage makes the forecast unreliable.
- Changing the close date without recording the reason hides slippage.
- Mixing annual and total contract values makes amounts incomparable.
- Using a display label instead of an internal stage ID can make an API request fail.
- Updating a deal without checking permissions can produce a partial or rejected change.
Exercise
A buyer confirms the requirements but has not approved the budget or agreed to a decision date. Should you move the deal to Negotiation and set a firm close date?
Show answer
No. Keep the current stage unless the negotiation criteria are met. Record the confirmed requirements, leave the close date evidence-based, and create a task to confirm budget and timing.