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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CaseRecIdRecord ID of the case, pointing to the case header in CaseDetailBase.Int64
RefRecId
YesCaseDetailBase.RecIdNone
EntityTypeKind of record the case is linked to, such as non conformance, quarantine order, lead or opportunity.Enum
CaseEntityType (enum)
YesNone
RefRecIdRecord ID of the linked record. Which table it points to depends on the entity type.Int64
RefRecId
NoBOMTable.RecIdCaseDetailBase.RecIdCustTable.RecIdCustTrans.RecIdEcoResProduct.RecIdHcmWorker.RecIdInventQualityOrderTable.RecIdInventTable.RecIdProdTable.RecIdProjTable.RecIdPurchLine.RecIdPurchTable.RecIdRouteTable.RecIdSMAServiceOrderTable.RecIdSalesLine.RecIdSalesTable.RecIdTrvExpTable.RecIdTrvExpTrans.RecIdVendInvoiceJour.RecIdVendInvoiceTrans.RecIdVendTable.RecIdsmmBusRelTable.RecIdsmmLeadTable.RecIdsmmOpportunityTable.RecIdNone
IsPrimaryShows whether this link is the main association for the case (Yes or No).Enum
NoYesId
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
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 (2)

Relations (26)

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

  • CaseDetailBase → CaseDetailBase

    Join on CaseRecId = CaseDetailBase.RecId

    Many CaseAssociation records → exactly one CaseDetailBase record

  • CaseDetailBaseReference → CaseDetailBase

    Join on RefRecId = CaseDetailBase.RecId, EntityType = CaseEntityType::Case

    Many CaseAssociation records → zero or one CaseDetailBase record

  • QMSInventNonConformanceTable → InventQualityOrderTable

    Join on EntityType = CaseEntityType::QualityOrder, RefRecId = InventQualityOrderTable.RecId

    Many CaseAssociation records → zero or one InventQualityOrderTable record

  • QMSInventQualityOrderTable → InventQualityOrderTable

    Join on EntityType = CaseEntityType::NonConformance, RefRecId = InventQualityOrderTable.RecId

    Many CaseAssociation records → zero or one InventQualityOrderTable record

  • QMSProdTable → ProdTable

    Join on EntityType = CaseEntityType::ProductionOrder, RefRecId = ProdTable.RecId

    Many CaseAssociation records → zero or one ProdTable record

  • QMSSalesLine → SalesLine

    Join on EntityType = CaseEntityType::SalesLine, RefRecId = SalesLine.RecId

    Many CaseAssociation records → zero or one SalesLine record

  • BOMFormulaTable → BOMTable

    Join on RefRecId = BOMTable.RecId, EntityType = CaseEntityType::BOM

    Many CaseAssociation records → zero or one BOMTable record

  • CustTable → CustTable

    Join on RefRecId = CustTable.RecId, EntityType = CaseEntityType::Customer

    Many CaseAssociation records → zero or one CustTable record

  • CustTrans → CustTrans

    Join on EntityType = CaseEntityType::CustTrans, RefRecId = CustTrans.RecId

    Many CaseAssociation records → zero or one CustTrans record

  • EcoResProduct → EcoResProduct

    Join on RefRecId = EcoResProduct.RecId, EntityType = CaseEntityType::Product

    Many CaseAssociation records → zero or one EcoResProduct record

  • InventTable → InventTable

    Join on RefRecId = InventTable.RecId, EntityType = CaseEntityType::Item

    Many CaseAssociation records → zero or one InventTable record

  • ProjTable → ProjTable

    Join on RefRecId = ProjTable.RecId, EntityType = CaseEntityType::Project

    Many CaseAssociation records → zero or one ProjTable record

  • PurchLine → PurchLine

    Join on RefRecId = PurchLine.RecId, EntityType = CaseEntityType::PurchLine

    Many CaseAssociation records → zero or one PurchLine record

  • PurchTable → PurchTable

    Join on RefRecId = PurchTable.RecId, EntityType = CaseEntityType::PurchTable

    Many CaseAssociation records → zero or one PurchTable record

  • RouteTable → RouteTable

    Join on RefRecId = RouteTable.RecId, EntityType = CaseEntityType::Route

    Many CaseAssociation records → zero or one RouteTable record

  • SalesTable → SalesTable

    Join on RefRecId = SalesTable.RecId, EntityType = CaseEntityType::SalesTable

    Many CaseAssociation records → zero or one SalesTable record

  • SMAServiceOrderTable → SMAServiceOrderTable

    Join on RefRecId = SMAServiceOrderTable.RecId, EntityType = CaseEntityType::ServiceOrder

    Many CaseAssociation records → zero or one SMAServiceOrderTable record

  • smmBusRelTable → smmBusRelTable

    Join on RefRecId = smmBusRelTable.RecId, EntityType = CaseEntityType::BusinessRelation

    Many CaseAssociation records → zero or one smmBusRelTable record

  • smmLeadTable → smmLeadTable

    Join on RefRecId = smmLeadTable.RecId, EntityType = CaseEntityType::Lead

    Many CaseAssociation records → zero or one smmLeadTable record

  • smmOpportunityTable → smmOpportunityTable

    Join on RefRecId = smmOpportunityTable.RecId, EntityType = CaseEntityType::Opportunity

    Many CaseAssociation records → zero or one smmOpportunityTable record

  • TrvExpTable → TrvExpTable

    Join on RefRecId = TrvExpTable.RecId, EntityType = CaseEntityType::TrvExpTable

    Many CaseAssociation records → zero or one TrvExpTable record

  • TrvExpTrans → TrvExpTrans

    Join on EntityType = CaseEntityType::TrvExpTrans, RefRecId = TrvExpTrans.RecId

    Many CaseAssociation records → zero or one TrvExpTrans record

  • VendInvoice → VendInvoiceJour

    Join on RefRecId = VendInvoiceJour.RecId, EntityType = CaseEntityType::VendorInvoice

    Many CaseAssociation records → zero or one VendInvoiceJour record

  • VendInvoiceTrans → VendInvoiceTrans

    Join on RefRecId = VendInvoiceTrans.RecId, EntityType = CaseEntityType::VendorInvoiceline

    Many CaseAssociation records → zero or one VendInvoiceTrans record

  • VendTable → VendTable

    Join on RefRecId = VendTable.RecId, EntityType = CaseEntityType::Vendor

    Many CaseAssociation records → zero or one VendTable record

  • HCMWorker → HCMWorker

    Join on RefRecId = HCMWorker.RecId, EntityType = CaseEntityType::Employee

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

Need help with CaseAssociation in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk