---
id: object/table/5343
type: object
title: Table 5343 "CRM Opportunity"
summary: Table 5343 "CRM Opportunity" in Base Application (Microsoft.Integration.D365Sales). 111 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: f53b66e6143e7a2340dff8df1a95577c0df359a7c31b693909f7241c74b59726
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMOpportunity.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CRMOpportunity.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5343
name: CRM Opportunity
namespace: Microsoft.Integration.D365Sales
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 111
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 28
  referenced_by: 10
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5343 "CRM Opportunity"

> Table 5343 "CRM Opportunity" in Base Application (Microsoft.Integration.D365Sales). 111 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Integration.D365Sales · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CRMOpportunity.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | CRM Opportunity |
| TableType | CRM |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | OpportunityId | Guid | Opportunity <small>caption</small> |  |
| 2 | PriceLevelId | Guid | Price List <small>caption</small> | TableRelation [Table 5346 "CRM Pricelevel"](../table/5346.md) ("CRM Pricelevel".PriceLevelId) |
| 3 | OpportunityRatingCode | Option | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | OptionCaption: Hot,Warm,Cold |
| 4 | PriorityCode | Option | Priority <small>caption</small> | OptionCaption: Default Value |
| 5 | ContactId | Guid | — | TableRelation [Table 5342 "CRM Contact"](../table/5342.md) ("CRM Contact".ContactId) |
| 6 | AccountId | Guid | — | TableRelation [Table 5341 "CRM Account"](../table/5341.md) ("CRM Account".AccountId) |
| 7 | Name | Text[2048] | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. |  |
| 8 | StepId | Guid | Step <small>caption</small> |  |
| 9 | Description | BLOB | — |  |
| 10 | EstimatedValue | Decimal | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. |  |
| 11 | StepName | Text[200] | Pipeline Phase <small>caption</small> |  |
| 12 | SalesStageCode | Option | Process Code <small>caption</small> | OptionCaption: Default Value |
| 13 | ParticipatesInWorkflow | Boolean | Participates in Workflow <small>caption</small> |  |
| 14 | PricingErrorCode | Option | Pricing Error <small>caption</small> | OptionCaption: None,Detail Error,Missing Price Level,Inactive Price Level,Missing Quantity,Missing Unit Price,Missing Product,Invalid Product,Missing Pricing Code,Invalid Pricing Code,Missing UOM,Product Not In Price Level,Missing Price Level Amount,Missing Price Level Percentage,Missing Price,Missing Current Cost... |
| 15 | EstimatedCloseDate | Date | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. |  |
| 16 | CloseProbability | Integer | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. |  |
| 17 | ActualValue | Decimal | Actual Revenue <small>caption</small> |  |
| 18 | ActualCloseDate | Date | Actual Close Date <small>caption</small> |  |
| 19 | OwningUser | Guid | Owning User <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 20 | OwningBusinessUnit | Guid | Owning Business Unit <small>caption</small> | TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md) ("CRM Businessunit".BusinessUnitId) |
| 21 | CreatedOn | DateTime | Created On <small>caption</small> |  |
| 22 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 23 | ModifiedOn | DateTime | Modified On <small>caption</small> |  |
| 24 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 25 | VersionNumber | BigInteger | Version Number <small>caption</small> |  |
| 26 | StateCode | Option | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | OptionCaption: Open,Won,Lost |
| 27 | StatusCode | Option | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | OptionCaption: ,In Progress,On Hold,Won,Canceled,Out-Sold |
| 28 | IsRevenueSystemCalculated | Boolean | Revenue <small>caption</small> |  |
| 29 | ContactIdName | Text[160] | — | FlowField: lookup("CRM Contact".FullName where(ContactId = field(ContactId))) |
| 30 | AccountIdName | Text[160] | — | FlowField: lookup("CRM Account".Name where(AccountId = field(AccountId))) |
| 31 | PriceLevelIdName | Text[100] | — | FlowField: lookup("CRM Pricelevel".Name where(PriceLevelId = field(PriceLevelId))) |
| 32 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 33 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 34 | CustomerId | Guid | Potential Customer <small>caption</small> | TableRelation [Table 5341 "CRM Account"](../table/5341.md), [Table 5342 "CRM Contact"](../table/5342.md) (if (CustomerIdType = const(account)) "CRM Account".AccountId else if (CustomerIdType = const(contact)) "CRM Contact".ContactId) |
| 35 | CustomerIdType | Option | Potential Customer Type <small>caption</small> | OptionCaption: ,account,contact |
| 36 | OwnerId | Guid | Owner <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md), [Table 5359 "CRM Team"](../table/5359.md) (if (OwnerIdType = const(systemuser)) "CRM Systemuser".SystemUserId else if (OwnerIdType = const(team)) "CRM Team".TeamId) |
| 37 | OwnerIdType | Option | — | OptionCaption: ,systemuser,team |
| 38 | TransactionCurrencyId | Guid | Currency <small>caption</small> | TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md) ("CRM Transactioncurrency".TransactionCurrencyId) |
| 39 | ExchangeRate | Decimal | Exchange Rate <small>caption</small> |  |
| 40 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> |  |
| 41 | UTCConversionTimeZoneCode | Integer | UTC Conversion Time Zone Code <small>caption</small> |  |
| 42 | TimeZoneRuleVersionNumber | Integer | Time Zone Rule Version Number <small>caption</small> |  |
| 43 | OverriddenCreatedOn | Date | Record Created On <small>caption</small> |  |
| 44 | TransactionCurrencyIdName | Text[100] | — | FlowField: lookup("CRM Transactioncurrency".CurrencyName where(TransactionCurrencyId = field(TransactionCurrencyId))) |
| 45 | ActualValue_Base | Decimal | Actual Revenue (Base) <small>caption</small> |  |
| 46 | EstimatedValue_Base | Decimal | Est. Revenue (Base) <small>caption</small> |  |
| 47 | TotalTax | Decimal | Total Tax <small>caption</small> |  |
| 48 | DiscountPercentage | Decimal | Opportunity Discount (%) <small>caption</small> |  |
| 49 | TotalAmount | Decimal | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. |  |
| 50 | DiscountAmount | Decimal | Opportunity Discount Amount <small>caption</small> |  |
| 51 | TotalAmountLessFreight | Decimal | Total Pre-Freight Amount <small>caption</small> |  |
| 52 | FreightAmount | Decimal | Freight Amount <small>caption</small> |  |
| 53 | TotalLineItemDiscountAmount | Decimal | Total Line Item Discount Amount <small>caption</small> |  |
| 54 | TotalLineItemAmount | Decimal | Total Detail Amount <small>caption</small> |  |
| 55 | TotalDiscountAmount | Decimal | Total Discount Amount <small>caption</small> |  |
| 56 | TotalLineItemAmount_Base | Decimal | Total Detail Amount (Base) <small>caption</small> |  |
| 57 | TotalDiscountAmount_Base | Decimal | Total Discount Amount (Base) <small>caption</small> |  |
| 58 | TotalTax_Base | Decimal | Total Tax (Base) <small>caption</small> |  |
| 59 | DiscountAmount_Base | Decimal | Opportunity Discount Amount (Base) <small>caption</small> |  |
| 60 | TotalLineItemDiscountAmount_Ba | Decimal | Total Line Item Discount Amount (Base) <small>caption</small> |  |
| 61 | TotalAmount_Base | Decimal | Total Amount (Base) <small>caption</small> |  |
| 62 | TotalAmountLessFreight_Base | Decimal | Total Pre-Freight Amount (Base) <small>caption</small> |  |
| 63 | FreightAmount_Base | Decimal | Freight Amount (Base) <small>caption</small> |  |
| 64 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 65 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 66 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId) |
| 67 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |
| 68 | OwningTeam | Guid | Owning Team <small>caption</small> | TableRelation [Table 5359 "CRM Team"](../table/5359.md) ("CRM Team".TeamId) |
| 69 | BudgetStatus | Option | Budget <small>caption</small> | OptionCaption: ,No Committed Budget,May Buy,Can Buy,Will Buy |
| 70 | DecisionMaker | Boolean | Decision Maker? <small>caption</small> |  |
| 71 | Need | Option | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | OptionCaption: ,Must have,Should have,Good to have,No need |
| 72 | TimeLine | Option | Timeline <small>caption</small> | OptionCaption: ,Immediate,This Quarter,Next Quarter,This Year,Not known |
| 73 | BudgetAmount | Decimal | Budget Amount <small>caption</small> |  |
| 74 | BudgetAmount_Base | Decimal | Budget Amount (Base) <small>caption</small> |  |
| 75 | ParentAccountId | Guid | Account <small>caption</small> | TableRelation [Table 5341 "CRM Account"](../table/5341.md) ("CRM Account".AccountId) |
| 76 | ParentAccountIdName | Text[160] | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | FlowField: lookup("CRM Account".Name where(AccountId = field(ParentAccountId))) |
| 77 | ParentContactId | Guid | Contact <small>caption</small> | TableRelation [Table 5342 "CRM Contact"](../table/5342.md) ("CRM Contact".ContactId) |
| 78 | ParentContactIdName | Text[160] | Specifies data from a corresponding field in a Dynamics 365 Sales entity. For more information about Dynamics 365 Sales, see Dynamics 365 Sales Help Center. | FlowField: lookup("CRM Contact".FullName where(ContactId = field(ParentContactId))) |
| 79 | EvaluateFit | Boolean | Evaluate Fit <small>caption</small> |  |
| 80 | InitialCommunication | Option | Initial Communication <small>caption</small> | OptionCaption: ,Contacted,Not Contacted |
| 81 | ConfirmInterest | Boolean | Confirm Interest <small>caption</small> |  |
| 82 | ScheduleFollowup_Prospect | Date | Scheduled Follow up (Prospect) <small>caption</small> |  |
| 83 | ScheduleFollowup_Qualify | Date | Scheduled Follow up (Qualify) <small>caption</small> |  |
| 84 | ScheduleProposalMeeting | Date | Schedule Proposal Meeting <small>caption</small> |  |
| 85 | FinalDecisionDate | Date | Final Decision Date <small>caption</small> |  |
| 86 | DevelopProposal | Boolean | Develop Proposal <small>caption</small> |  |
| 87 | CompleteInternalReview | Boolean | Complete Internal Review <small>caption</small> |  |
| 88 | CaptureProposalFeedback | Boolean | Proposal Feedback Captured <small>caption</small> |  |
| 89 | ResolveFeedback | Boolean | Feedback Resolved <small>caption</small> |  |
| 90 | PresentProposal | Boolean | Presented Proposal <small>caption</small> |  |
| 91 | SendThankYouNote | Boolean | Send Thank You Note <small>caption</small> |  |
| 92 | SalesStage | Option | Sales Stage <small>caption</small> | OptionCaption: ,Qualify,Develop,Propose,Close |
| 93 | TraversedPath | Text[250] | Traversed Path <small>caption</small> |  |
| 94 | CompleteFinalProposal | Boolean | Final Proposal Ready <small>caption</small> |  |
| 95 | FileDebrief | Boolean | File Debrief <small>caption</small> |  |
| 96 | PursuitDecision | Boolean | Decide Go/No-Go <small>caption</small> |  |
| 97 | CustomerPainPoints | BLOB | Customer Pain Points <small>caption</small> |  |
| 98 | CustomerNeed | BLOB | Customer Need <small>caption</small> |  |
| 99 | ProposedSolution | BLOB | Proposed Solution <small>caption</small> |  |
| 100 | QualificationComments | BLOB | Qualification Comments <small>caption</small> |  |
| 101 | QuoteComments | BLOB | Quote Comments <small>caption</small> |  |
| 102 | PurchaseProcess | Option | Purchase Process <small>caption</small> | OptionCaption: ,Individual,Committee,Unknown |
| 103 | PurchaseTimeframe | Option | Purchase Timeframe <small>caption</small> | OptionCaption: ,Immediate,This Quarter,Next Quarter,This Year,Unknown |
| 104 | IdentifyCustomerContacts | Boolean | Identify Customer Contacts <small>caption</small> |  |
| 105 | IdentifyCompetitors | Boolean | Identify Competitors <small>caption</small> |  |
| 106 | IdentifyPursuitTeam | Boolean | Identify Sales Team <small>caption</small> |  |
| 107 | CurrentSituation | BLOB | Current Situation <small>caption</small> |  |
| 108 | PresentFinalProposal | Boolean | Present Final Proposal <small>caption</small> |  |
| 109 | StageId | Guid | Process Stage <small>caption</small> |  |
| 110 | ProcessId | Guid | Process <small>caption</small> |  |
| 111 | CompanyId | Guid | Company Id <small>caption</small> | TableRelation [Table 5393 "CDS Company"](../table/5393.md) ("CDS Company".CompanyId) |

## Keys

- Key1: OpportunityId (clustered)
- Key2: Name

## Relations

- CreatedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- OwnerId: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) (conditional)
- OwningUser: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- AccountIdName: CalcFormula [Table 5341 "CRM Account"](../table/5341.md)
- ParentAccountIdName: CalcFormula [Table 5341 "CRM Account"](../table/5341.md)
- AccountId: TableRelation [Table 5341 "CRM Account"](../table/5341.md)
- CustomerId: TableRelation [Table 5341 "CRM Account"](../table/5341.md) (conditional)
- ParentAccountId: TableRelation [Table 5341 "CRM Account"](../table/5341.md)
- ContactIdName: CalcFormula [Table 5342 "CRM Contact"](../table/5342.md)
- ParentContactIdName: CalcFormula [Table 5342 "CRM Contact"](../table/5342.md)
- ContactId: TableRelation [Table 5342 "CRM Contact"](../table/5342.md)
- CustomerId: TableRelation [Table 5342 "CRM Contact"](../table/5342.md) (conditional)
- ParentContactId: TableRelation [Table 5342 "CRM Contact"](../table/5342.md)
- TransactionCurrencyIdName: CalcFormula [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- TransactionCurrencyId: TableRelation [Table 5345 "CRM Transactioncurrency"](../table/5345.md)
- PriceLevelIdName: CalcFormula [Table 5346 "CRM Pricelevel"](../table/5346.md)
- PriceLevelId: TableRelation [Table 5346 "CRM Pricelevel"](../table/5346.md)
- OwnerId: TableRelation [Table 5359 "CRM Team"](../table/5359.md) (conditional)
- OwningTeam: TableRelation [Table 5359 "CRM Team"](../table/5359.md)
- OwningBusinessUnit: TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md)
- CompanyId: TableRelation [Table 5393 "CDS Company"](../table/5393.md)

## Referenced by

10 fields in 7 objects relate to this table (TableRelation or CalcFormula).

- [Table 5351 "CRM Quote"](../table/5351.md): OpportunityIdName, OpportunityId
- [Table 5353 "CRM Salesorder"](../table/5353.md): OpportunityIdName, OpportunityId
- [Table 5355 "CRM Invoice"](../table/5355.md): OpportunityIdName, OpportunityId
- [Table 5359 "CRM Team"](../table/5359.md): RegardingObjectId
- [Table 5385 "CRM Annotation"](../table/5385.md): ObjectId
- [Table 6400 "FS Work Order"](../table/6400.md): OpportunityId
- [Table 6617 "FS Work Order"](../table/6617.md): OpportunityId

## Pages and codeunits on this table

- [Page 5343 "CRM Opportunity List"](../page/5343.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "CRM Opportunity")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
