Table
smmOpportunityRelTable
Opportunity relations table
Links an opportunity to other records. Each row holds an opportunity ID plus a table ID and record ID that identify the linked record. Related tables include contacts, projects, sales quotations, campaigns and leads.
- Table name
smmOpportunityRelTable- Module
Sales and marketing- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
SmmCRM- Primary index
RecId- Replacement key
RefIdIdx- Key fields
OpportunityId, RefTableId, RefRecId- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
OpportunityIdThe opportunity that this link belongs to. | StringsmmOpportunityId | Yes | smmOpportunityTable.OpportunityId | None |
RefTableIdID of the table that holds the linked record. | IntegerRefTableId | No | None | |
RefRecIdSystem record ID of the linked record, such as a contact. | Int64RefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
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 (1)
RefIdIdxReplacement keyOpportunityId,RefTableId,RefRecIdUnique, alternate key.
Relations (6)
Each relation joins smmOpportunityRelTable to another table on the fields shown.
contactPerson→ContactPersonJoin on
RefTableId = ContactPerson.TableId,RefRecId = ContactPerson.RecIdMany smmOpportunityRelTable records → zero or one ContactPerson record
ProjTable→ProjTableJoin on
RefTableId = ProjTable.TableId,RefRecId = ProjTable.RecIdMany smmOpportunityRelTable records → zero or one ProjTable record
salesQuotationTable→SalesQuotationTableJoin on
OpportunityId = SalesQuotationTable.OpportunityIdCardinality not set in the metadata.
smmCampaignTable→smmCampaignTableJoin on
RefTableId = smmCampaignTable.TableId,RefRecId = smmCampaignTable.RecIdMany smmOpportunityRelTable records → zero or one smmCampaignTable record
smmLeadTable→smmLeadTableJoin on
RefTableId = smmLeadTable.TableId,RefRecId = smmLeadTable.RecIdMany smmOpportunityRelTable records → zero or one smmLeadTable record
smmOpportunityTable→smmOpportunityTableJoin on
OpportunityId = smmOpportunityTable.OpportunityIdMany smmOpportunityRelTable records → exactly one smmOpportunityTable record
Get this data out
No public entity reads from smmOpportunityRelTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with smmOpportunityRelTable in a report, an integration or a migration? Talk to Dr Dynamics.