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 descriptionType / EDT / enumMandatoryReferencesIn public entities
OpportunityIdUnique ID of the opportunity.String
smmOpportunityId
YesNone
ClosedByWorkerThe worker who closed the opportunity.Int64
smmOpportunityClosedByWorker
NoHcmWorker.RecIdNone
ClosedDateThe date the opportunity was closed.Date
smmOpportunityClosedDate
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DaysToCloseNumber of days to close, as stored for the opportunity.Integer
smmDaysToClose
NoNone
EstimatedRevenueExpected revenue from the opportunity; the currency is not stated in the metadata.Real
smmOpportunityEstimatedRevenue
NoNone
MemoFree-text notes about the opportunity.String (-1)
smmOpportunityMemo
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OpenedByWorkerThe worker who opened the opportunity.Int64
smmOpportunityOpenedByWorker
NoHcmWorker.RecIdNone
OpenedDateThe date the opportunity was opened.Date
smmOpportunityOpenedDate
NoNone
OwnerWorkerThe worker who owns the opportunity.Int64
smmOpportunityOwnerWorker
NoHcmWorker.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyThe party (customer or prospect) the opportunity is for.Int64
DirPartyRecId
NoCustTable.PartyDirPartyTable.RecIdsmmBusRelTable.PartyNone
ProbabilityIdThe probability value assigned to the opportunity, taken from the quotation probability setup.Integer
smmQuotationProbabilityId
NosmmQuotationProbabilityGroup.ProbabilityIdNone
ProcessNameThe sales process used for the opportunity, linked to a hierarchy.String (20)
smmOpportunitySalesProcess
NoNone
PrognosisIdThe prognosis assigned to the opportunity, taken from the quotation prognosis setup.String (20)
smmQuotationPrognosisId
NosmmQuotationPrognosisGroup.PrognosisIdNone
ReasonThe reason code linked to the opportunity, taken from the quotation reason setup.String (20)
smmQuotationReasonId
NosmmQuotationReasonGroup.ReasonIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SalesUnitIdThe sales unit responsible for the opportunity.String (20)
smmSalesUnitId
NosmmSalesUnit.SalesUnitIdNone
SourceDescriptionShort comment about where the opportunity came from.String (60)
smmSourceComment
NoNone
SourceRefRecIdSystem record ID of the record that is the source of the opportunity.Int64
smmSourceRecId
NoNone
SourceRefTableIdID of the table that holds the source record.Integer
RefTableId
NoNone
SourceTypeIdThe type of source for the opportunity.String (20)
SmmSourceTypeId
NosmmSourceTypeTable.TypeIdNone
StatusCurrent state of the opportunity: none, active, postponed, won, canceled or lost.Enum
smmOpportunityStatus (enum)
NoNone
SubjectShort title of the opportunity.String (60)
smmOpportunitySubject
YesNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (5)

Relations (14)

Each relation joins smmOpportunityTable to another table on the fields shown.

  • ClosedByWorker → HcmWorker

    Join on ClosedByWorker = HcmWorker.RecId

    Many smmOpportunityTable records → zero or one HcmWorker record

  • CustTable → CustTable

    Join on Party = CustTable.Party

    Many smmOpportunityTable records → zero or one CustTable record

  • DirAddressBookParty → DirAddressBookPartyAllView

    Join on Party = DirAddressBookPartyAllView.Party

    Cardinality not set in the metadata.

  • DirPartyTable_FK → DirPartyTable

    Join on Party = DirPartyTable.RecId

    Many smmOpportunityTable records → zero or one DirPartyTable record

  • Hierarchy → Hierarchy

    Join on ProcessName = Hierarchy.Name, Hierarchy.IsActive = NoYes::Yes, Hierarchy.IsTemplate = NoYes::Yes, Hierarchy.HierarchyType = HierarchyType::Opportunity

    Cardinality not set in the metadata.

  • OpenedByWorker → HcmWorker

    Join on OpenedByWorker = HcmWorker.RecId

    Many smmOpportunityTable records → zero or one HcmWorker record

  • OwnerWorker → HcmWorker

    Join on OwnerWorker = HcmWorker.RecId

    Many smmOpportunityTable records → zero or one HcmWorker record

  • smmBusRelTable → smmBusRelTable

    Join on Party = smmBusRelTable.Party

    Many smmOpportunityTable records → zero or one smmBusRelTable record

  • smmOpportunityRelTable → smmOpportunityRelTable

    Join on TableId = smmOpportunityRelTable.RefTableId, RecId = smmOpportunityRelTable.RefRecId

    Cardinality not set in the metadata.

  • smmQuotationProbabilityGroup → smmQuotationProbabilityGroup

    Join on ProbabilityId = smmQuotationProbabilityGroup.ProbabilityId

    Many smmOpportunityTable records → zero or one smmQuotationProbabilityGroup record

  • smmQuotationPrognosisGroup → smmQuotationPrognosisGroup

    Join on PrognosisId = smmQuotationPrognosisGroup.PrognosisId

    Many smmOpportunityTable records → zero or one smmQuotationPrognosisGroup record

  • smmQuotationReasonGroup → smmQuotationReasonGroup

    Join on Reason = smmQuotationReasonGroup.ReasonId

    Many smmOpportunityTable records → zero or one smmQuotationReasonGroup record

  • smmSalesUnit → smmSalesUnit

    Join on SalesUnitId = smmSalesUnit.SalesUnitId

    Many smmOpportunityTable records → zero or one smmSalesUnit record

  • smmSourceTypeTable → smmSourceTypeTable

    Join on SourceTypeId = smmSourceTypeTable.TypeId

    Many 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.

Email sales@drdynamics.co.uk