---
title: "Table 5092 Opportunity"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/5092-opportunity/
type: table
id: 5092
name: "Opportunity"
app: "Base Application"
namespace: Microsoft.CRM.Opportunity
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/5092-opportunity/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 5092 Opportunity

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5092-opportunity/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Opportunity |
| Versions | 17-28 |
| Source file | CRM/Opportunity/Opportunity.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | No. | Code[20] | 17-28 | - | - |
| 2 | Description | Text[100] | 17-28 | - | - |
| 3 | Salesperson Code | Code[20] | 17-28 | - | - |
| 4 | Campaign No. | Code[20] | 17-28 | - | - |
| 5 | Contact No. | Code[20] | 17-28 | - | - |
| 6 | Contact Company No. | Code[20] | 17-28 | - | - |
| 7 | Sales Cycle Code | Code[10] | 17-28 | - | - |
| 8 | Sales Document No. | Code[20] | 17-28 | - | - |
| 9 | Creation Date | Date | 17-28 | - | - |
| 10 | Status | Enum Opportunity Status | 17-28 | - | - |
| 11 | Priority | Enum Opportunity Priority | 17-28 | - | - |
| 12 | Closed | Boolean | 17-28 | - | - |
| 13 | Date Closed | Date | 17-28 | - | - |
| 15 | No. Series | Code[20] | 17-28 | - | - |
| 16 | Comment | Boolean | 17-28 | - | - |
| 17 | Current Sales Cycle Stage | Integer | 17-28 | - | - |
| 18 | Estimated Value (LCY) | Decimal | 17-28 | - | - |
| 19 | Probability % | Decimal | 17-28 | - | - |
| 20 | Calcd. Current Value (LCY) | Decimal | 17-28 | - | - |
| 21 | Chances of Success % | Decimal | 17-28 | - | - |
| 22 | Completed % | Decimal | 17-28 | - | - |
| 23 | Contact Name | Text[100] | 17-28 | - | - |
| 24 | Contact Company Name | Text[100] | 17-28 | - | - |
| 25 | Salesperson Name | Text[50] | 17-28 | - | - |
| 26 | Campaign Description | Text[100] | 17-28 | - | - |
| 27 | Segment No. | Code[20] | 17-28 | - | - |
| 28 | Estimated Closing Date | Date | 17-28 | - | - |
| 29 | Sales Document Type | Enum Opportunity Document Type | 17-28 | - | - |
| 30 | No. of Interactions | Integer | 17-28 | - | - |
| 720 | Coupled to CRM | Boolean | 19-28 | Removed 26.0 | Replaced by flow field Coupled to Dataverse |
| 721 | Coupled to Dataverse | Boolean | 22-28 | - | - |
| 9501 | Wizard Step | Option | 17-28 | - | - |
| 9502 | Activate First Stage | Boolean | 17-28 | - | - |
| 9503 | Segment Description | Text[100] | 17-28 | - | - |
| 9504 | Wizard Estimated Value (LCY) | Decimal | 17-28 | - | - |
| 9505 | Wizard Chances of Success % | Decimal | 17-28 | - | - |
| 9506 | Wizard Estimated Closing Date | Date | 17-28 | - | - |
| 9507 | Wizard Contact Name | Text[100] | 17-28 | - | - |
| 9508 | Wizard Campaign Description | Text[100] | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | No. | 17-28 |
| Key2 | Contact Company No., Contact No., Closed | 17-28 |
| Key3 | Salesperson Code, Closed | 17-28 |
| Key4 | Campaign No., Closed | 17-28 |
| Key5 | Segment No., Closed | 17-28 |
| Key6 | Sales Document Type, Sales Document No. | 17-28 |
| Key7 | Description | 17-28 |
| Key8 | SystemModifiedAt | 19-28 |
| Key9 | Coupled to CRM | 19-25 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateFromInteractionLogEntry | (Record Interaction Log Entry) | - | public | 17-28 | - | - |
| CreateFromSegmentLine | (Record Segment Line) | - | public | 17-28 | - | - |
| CreateOppFromOpp | (var Record Opportunity) | - | public | 17-28 | - | - |
| UpdateOpportunity | () | - | public | 17-28 | - | - |
| CloseOpportunity | () | - | public | 17-28 | - | - |
| CreateQuote | () | - | public | 17-28 | - | - |
| ShowQuote | () | - | public | 17-28 | - | - |
| CheckStatus | () | - | public | 17-28 | - | - |
| FinishWizard | () | - | public | 17-28 | - | - |
| SetComments | (var Record Rlshp. Mgt. Comment Line) | - | public | 17-28 | - | - |
| ShowSalesQuoteWithCheck | () | - | public | 17-28 | - | - |
| SetSegmentFromFilter | () | - | public | 17-28 | - | - |
| SetContactFromFilter | () | - | public | 17-28 | - | - |
| StartActivateFirstStage | () | - | public | 17-28 | - | - |
| SetDefaultSalesCycle | () | - | public | 17-28 | - | - |
| SetCampaignFromFilter | () | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterFinishWizard | (var Record Opportunity) | 17-28 | - | - |
| Integration event | OnAfterInsertOpportunity | (var Record Opportunity) | 17-28 | - | - |
| Integration event | OnCreateOppFromOppOnAfterInit | (var Record Opportunity) | 17-25 | - | - |
| Integration event | OnCreateQuoteOnBeforeSalesHeaderInsert | (var Record Sales Header, Record Opportunity) | 17-23 | - | - |
| Integration event | OnCreateQuoteOnBeforePageRun | (var Record Sales Header, var Record Opportunity) | 17-28 | - | - |
| Integration event | OnBeforeGetNewCustomerTemplateCode | (Record Contact, var Code[20], var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeCheckStatus | (var Record Opportunity, var Record Opportunity Entry, var Boolean) | 19-28 | - | - |
| Integration event | OnFinishWizardOnBeforeInsertOpportunity | (var Record Opportunity, var Record Opportunity Entry) | 19-28 | - | - |
| Integration event | OnAfterStartActivateFirstStage | (Record Sales Cycle Stage, var Record Opportunity Entry) | 20-22 | - | - |
| Integration event | OnBeforeCheckCampaign | (var Record Opportunity, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeFinishWizard | (var Record Opportunity, var Record Opportunity Entry) | 20-28 | - | - |
| Integration event | OnBeforeProcessFirstStage | (var Record Opportunity, var Record Opportunity Entry, Boolean, Boolean) | 20 | - | - |
| Integration event | OnBeforeRunPageForRec | (var Record Opportunity, var Integer) | 20-28 | - | - |
| Integration event | OnLookupCampaignsOnAfterSetFilters | (var Record Opportunity, var Record Campaign) | 20-28 | - | - |
| Integration event | OnBeforeProcessFirstStage | (var Record Opportunity, var Record Opportunity Entry, Boolean, Boolean, Code[20]) | 21-28 | - | - |
| Integration event | OnCreateQuoteOnAfterSalesHeaderInsert | (var Record Sales Header, Record Opportunity) | 21-23 | - | - |
| Integration event | OnCreateFromCreateFromInteractionLogEntryOnBeforeInsert | (var Record Opportunity, Record Interaction Log Entry) | 21-28 | - | - |
| Integration event | OnCreateFromSegmentLineOnBeforeInsert | (var Record Opportunity, Record Segment Line) | 21-28 | - | - |
| Integration event | OnBeforeRunQuotePage | (var Record Sales Header, Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnCreateOppFromOppOnBeforeSetFilterSalesPersonCode | (var Record Opportunity, var Boolean) | 22-25 | - | - |
| Integration event | OnAfterProcessFirstStage | (var Record Opportunity Entry) | 22-28 | - | - |
| Integration event | OnAfterStartActivateFirstStage | (Record Sales Cycle Stage, var Record Opportunity Entry, var Record Opportunity) | 23-28 | - | - |
| Integration event | OnCreateQuoteOnAfterSalesHeaderInsert | (var Record Sales Header, var Record Opportunity) | 24-28 | - | - |
| Integration event | OnCreateQuoteOnBeforeSalesHeaderInsert | (var Record Sales Header, var Record Opportunity) | 24-28 | - | - |
| Integration event | OnBeforeValidateContactNo | (var Record Opportunity, Integer, var Boolean) | 24 | - | - |
| Integration event | OnStartWizardBeforeInsert | (var Record Opportunity) | 24-28 | - | - |
| Integration event | OnBeforeValidateContactNo | (var Record Opportunity, Integer, var Boolean, Record Opportunity) | 25-28 | - | - |
| Integration event | OnStartActivateFirstStageOnBeforeSalesCycleStageFind | (var Record Opportunity, var Record Sales Cycle Stage) | 25-28 | - | - |
| Integration event | OnCreateOppFromOppOnAfterInit | (var Record Opportunity, var Boolean) | 26-28 | - | - |
| Integration event | OnCreateOppFromOppOnBeforeSetFilterSalesPersonCode | (var Record Opportunity, var Boolean, var Record Opportunity) | 26-28 | - | - |
| Integration event | OnBeforeUpdateOpportunity | (var Record Opportunity) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
