Table
CaseAssociation
Case association
Links a case to another record, such as a customer, sales order line, product or worker. The key is the case, the entity type and the referenced record. The entity type shows which kind of record the reference points to.
- Table name
CaseAssociation- Module
Cross-module and platform- Table group
Main- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
EntityTypeIdx- Key fields
CaseRecId, EntityType, RefRecId- Model
CaseManagement
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CaseRecIdRecord ID of the case, pointing to the case header in CaseDetailBase. | Int64RefRecId | Yes | CaseDetailBase.RecId | None |
EntityTypeKind of record the case is linked to, such as non conformance, quarantine order, lead or opportunity. | EnumCaseEntityType (enum) | Yes | None | |
RefRecIdRecord ID of the linked record. Which table it points to depends on the entity type. | Int64RefRecId | No | BOMTable.RecIdCaseDetailBase.RecIdCustTable.RecIdCustTrans.RecIdEcoResProduct.RecIdHcmWorker.RecIdInventQualityOrderTable.RecIdInventTable.RecIdProdTable.RecIdProjTable.RecIdPurchLine.RecIdPurchTable.RecIdRouteTable.RecIdSMAServiceOrderTable.RecIdSalesLine.RecIdSalesTable.RecIdTrvExpTable.RecIdTrvExpTrans.RecIdVendInvoiceJour.RecIdVendInvoiceTrans.RecIdVendTable.RecIdsmmBusRelTable.RecIdsmmLeadTable.RecIdsmmOpportunityTable.RecId | None |
IsPrimaryShows whether this link is the main association for the case (Yes or No). | EnumNoYesIdNoYes (enum) | 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 (2)
EntityTypeIdxReplacement keyCaseRecId,EntityType,RefRecIdUnique, alternate key.
AssociationEntityNot unique.
Relations (26)
Each relation joins CaseAssociation to another table on the fields shown.
CaseDetailBase→CaseDetailBaseJoin on
CaseRecId = CaseDetailBase.RecIdMany CaseAssociation records → exactly one CaseDetailBase record
CaseDetailBaseReference→CaseDetailBaseJoin on
RefRecId = CaseDetailBase.RecId,EntityType = CaseEntityType::CaseMany CaseAssociation records → zero or one CaseDetailBase record
QMSInventNonConformanceTable→InventQualityOrderTableJoin on
EntityType = CaseEntityType::QualityOrder,RefRecId = InventQualityOrderTable.RecIdMany CaseAssociation records → zero or one InventQualityOrderTable record
QMSInventQualityOrderTable→InventQualityOrderTableJoin on
EntityType = CaseEntityType::NonConformance,RefRecId = InventQualityOrderTable.RecIdMany CaseAssociation records → zero or one InventQualityOrderTable record
QMSProdTable→ProdTableJoin on
EntityType = CaseEntityType::ProductionOrder,RefRecId = ProdTable.RecIdMany CaseAssociation records → zero or one ProdTable record
QMSSalesLine→SalesLineJoin on
EntityType = CaseEntityType::SalesLine,RefRecId = SalesLine.RecIdMany CaseAssociation records → zero or one SalesLine record
BOMFormulaTable→BOMTableJoin on
RefRecId = BOMTable.RecId,EntityType = CaseEntityType::BOMMany CaseAssociation records → zero or one BOMTable record
CustTable→CustTableJoin on
RefRecId = CustTable.RecId,EntityType = CaseEntityType::CustomerMany CaseAssociation records → zero or one CustTable record
CustTrans→CustTransJoin on
EntityType = CaseEntityType::CustTrans,RefRecId = CustTrans.RecIdMany CaseAssociation records → zero or one CustTrans record
EcoResProduct→EcoResProductJoin on
RefRecId = EcoResProduct.RecId,EntityType = CaseEntityType::ProductMany CaseAssociation records → zero or one EcoResProduct record
InventTable→InventTableJoin on
RefRecId = InventTable.RecId,EntityType = CaseEntityType::ItemMany CaseAssociation records → zero or one InventTable record
ProjTable→ProjTableJoin on
RefRecId = ProjTable.RecId,EntityType = CaseEntityType::ProjectMany CaseAssociation records → zero or one ProjTable record
PurchLine→PurchLineJoin on
RefRecId = PurchLine.RecId,EntityType = CaseEntityType::PurchLineMany CaseAssociation records → zero or one PurchLine record
PurchTable→PurchTableJoin on
RefRecId = PurchTable.RecId,EntityType = CaseEntityType::PurchTableMany CaseAssociation records → zero or one PurchTable record
RouteTable→RouteTableJoin on
RefRecId = RouteTable.RecId,EntityType = CaseEntityType::RouteMany CaseAssociation records → zero or one RouteTable record
SalesTable→SalesTableJoin on
RefRecId = SalesTable.RecId,EntityType = CaseEntityType::SalesTableMany CaseAssociation records → zero or one SalesTable record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
RefRecId = SMAServiceOrderTable.RecId,EntityType = CaseEntityType::ServiceOrderMany CaseAssociation records → zero or one SMAServiceOrderTable record
smmBusRelTable→smmBusRelTableJoin on
RefRecId = smmBusRelTable.RecId,EntityType = CaseEntityType::BusinessRelationMany CaseAssociation records → zero or one smmBusRelTable record
smmLeadTable→smmLeadTableJoin on
RefRecId = smmLeadTable.RecId,EntityType = CaseEntityType::LeadMany CaseAssociation records → zero or one smmLeadTable record
smmOpportunityTable→smmOpportunityTableJoin on
RefRecId = smmOpportunityTable.RecId,EntityType = CaseEntityType::OpportunityMany CaseAssociation records → zero or one smmOpportunityTable record
TrvExpTable→TrvExpTableJoin on
RefRecId = TrvExpTable.RecId,EntityType = CaseEntityType::TrvExpTableMany CaseAssociation records → zero or one TrvExpTable record
TrvExpTrans→TrvExpTransJoin on
EntityType = CaseEntityType::TrvExpTrans,RefRecId = TrvExpTrans.RecIdMany CaseAssociation records → zero or one TrvExpTrans record
VendInvoice→VendInvoiceJourJoin on
RefRecId = VendInvoiceJour.RecId,EntityType = CaseEntityType::VendorInvoiceMany CaseAssociation records → zero or one VendInvoiceJour record
VendInvoiceTrans→VendInvoiceTransJoin on
RefRecId = VendInvoiceTrans.RecId,EntityType = CaseEntityType::VendorInvoicelineMany CaseAssociation records → zero or one VendInvoiceTrans record
VendTable→VendTableJoin on
RefRecId = VendTable.RecId,EntityType = CaseEntityType::VendorMany CaseAssociation records → zero or one VendTable record
HCMWorker→HCMWorkerJoin on
RefRecId = HCMWorker.RecId,EntityType = CaseEntityType::EmployeeMany CaseAssociation records → zero or one HCMWorker record
Get this data out
Tables are not exposed directly. These public entities read from CaseAssociation; use one of them in Power BI, Power Platform or a data management project.
QMSCAPACaseAssociationDimensionEntity· 0 fields from this table
Need help with CaseAssociation in a report, an integration or a migration? Talk to Dr Dynamics.