Table
smmOpportunityTable
Opportunities
Holds sales opportunities, one row per opportunity ID. Each row records the customer or prospect party, status, dates, estimated revenue and the people who opened, own and closed it. It also points to the sales unit, probability, prognosis, reason, source and sales process.
- Table name
smmOpportunityTable- Module
Sales and marketing- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
SmmCRM- Primary index
OpportunityIdIdx- Replacement key
OpportunityIdIdx- Key fields
OpportunityId- Model
Foundation
Fields (31)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
OpportunityIdUnique ID of the opportunity. | StringsmmOpportunityId | Yes | None | |
ClosedByWorkerThe worker who closed the opportunity. | Int64smmOpportunityClosedByWorker | No | HcmWorker.RecId | None |
ClosedDateThe date the opportunity was closed. | DatesmmOpportunityClosedDate | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DaysToCloseNumber of days to close, as stored for the opportunity. | IntegersmmDaysToClose | No | None | |
EstimatedRevenueExpected revenue from the opportunity; the currency is not stated in the metadata. | RealsmmOpportunityEstimatedRevenue | No | None | |
MemoFree-text notes about the opportunity. | String (-1)smmOpportunityMemo | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OpenedByWorkerThe worker who opened the opportunity. | Int64smmOpportunityOpenedByWorker | No | HcmWorker.RecId | None |
OpenedDateThe date the opportunity was opened. | DatesmmOpportunityOpenedDate | No | None | |
OwnerWorkerThe worker who owns the opportunity. | Int64smmOpportunityOwnerWorker | No | HcmWorker.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PartyThe party (customer or prospect) the opportunity is for. | Int64DirPartyRecId | No | CustTable.PartyDirPartyTable.RecIdsmmBusRelTable.Party | None |
ProbabilityIdThe probability value assigned to the opportunity, taken from the quotation probability setup. | IntegersmmQuotationProbabilityId | No | smmQuotationProbabilityGroup.ProbabilityId | None |
ProcessNameThe sales process used for the opportunity, linked to a hierarchy. | String (20)smmOpportunitySalesProcess | No | None | |
PrognosisIdThe prognosis assigned to the opportunity, taken from the quotation prognosis setup. | String (20)smmQuotationPrognosisId | No | smmQuotationPrognosisGroup.PrognosisId | None |
ReasonThe reason code linked to the opportunity, taken from the quotation reason setup. | String (20)smmQuotationReasonId | No | smmQuotationReasonGroup.ReasonId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SalesUnitIdThe sales unit responsible for the opportunity. | String (20)smmSalesUnitId | No | smmSalesUnit.SalesUnitId | None |
SourceDescriptionShort comment about where the opportunity came from. | String (60)smmSourceComment | No | None | |
SourceRefRecIdSystem record ID of the record that is the source of the opportunity. | Int64smmSourceRecId | No | None | |
SourceRefTableIdID of the table that holds the source record. | IntegerRefTableId | No | None | |
SourceTypeIdThe type of source for the opportunity. | String (20)SmmSourceTypeId | No | smmSourceTypeTable.TypeId | None |
StatusCurrent state of the opportunity: none, active, postponed, won, canceled or lost. | EnumsmmOpportunityStatus (enum) | No | None | |
SubjectShort title of the opportunity. | String (60)smmOpportunitySubject | Yes | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (5)
OpportunityIdIdxPrimary indexReplacement keyUnique, alternate key.
StatusIdxNot unique.
OwnerIdxNot unique.
HcmWorkerIdxNot unique.
HcmWorkerIdx1Not unique.
Relations (14)
Each relation joins smmOpportunityTable to another table on the fields shown.
ClosedByWorker→HcmWorkerJoin on
ClosedByWorker = HcmWorker.RecIdMany smmOpportunityTable records → zero or one HcmWorker record
CustTable→CustTableJoin on
Party = CustTable.PartyMany smmOpportunityTable records → zero or one CustTable record
DirAddressBookParty→DirAddressBookPartyAllViewJoin on
Party = DirAddressBookPartyAllView.PartyCardinality not set in the metadata.
DirPartyTable_FK→DirPartyTableJoin on
Party = DirPartyTable.RecIdMany smmOpportunityTable records → zero or one DirPartyTable record
Hierarchy→HierarchyJoin on
ProcessName = Hierarchy.Name,Hierarchy.IsActive = NoYes::Yes,Hierarchy.IsTemplate = NoYes::Yes,Hierarchy.HierarchyType = HierarchyType::OpportunityCardinality not set in the metadata.
OpenedByWorker→HcmWorkerJoin on
OpenedByWorker = HcmWorker.RecIdMany smmOpportunityTable records → zero or one HcmWorker record
OwnerWorker→HcmWorkerJoin on
OwnerWorker = HcmWorker.RecIdMany smmOpportunityTable records → zero or one HcmWorker record
smmBusRelTable→smmBusRelTableJoin on
Party = smmBusRelTable.PartyMany smmOpportunityTable records → zero or one smmBusRelTable record
smmOpportunityRelTable→smmOpportunityRelTableJoin on
TableId = smmOpportunityRelTable.RefTableId,RecId = smmOpportunityRelTable.RefRecIdCardinality not set in the metadata.
smmQuotationProbabilityGroup→smmQuotationProbabilityGroupJoin on
ProbabilityId = smmQuotationProbabilityGroup.ProbabilityIdMany smmOpportunityTable records → zero or one smmQuotationProbabilityGroup record
smmQuotationPrognosisGroup→smmQuotationPrognosisGroupJoin on
PrognosisId = smmQuotationPrognosisGroup.PrognosisIdMany smmOpportunityTable records → zero or one smmQuotationPrognosisGroup record
smmQuotationReasonGroup→smmQuotationReasonGroupJoin on
Reason = smmQuotationReasonGroup.ReasonIdMany smmOpportunityTable records → zero or one smmQuotationReasonGroup record
smmSalesUnit→smmSalesUnitJoin on
SalesUnitId = smmSalesUnit.SalesUnitIdMany smmOpportunityTable records → zero or one smmSalesUnit record
smmSourceTypeTable→smmSourceTypeTableJoin on
SourceTypeId = smmSourceTypeTable.TypeIdMany smmOpportunityTable records → zero or one smmSourceTypeTable record
Get this data out
No public entity reads from smmOpportunityTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with smmOpportunityTable in a report, an integration or a migration? Talk to Dr Dynamics.