Table
InstructionEntityAssociation
Instruction entity association
Connects instructions to other records, such as released products, routes, resources or bills of materials. Each row holds the entity type, the entity record ID and the instruction. The key combines all three.
- Table name
InstructionEntityAssociation- Module
Cross-module and platform- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
ReferenceIdx- Key fields
EntityType, EntityRecId, Instruction- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
EntityTypeKind of record the instruction is linked to, such as product, route, resource or bill of materials. | EnumInstructionEntityType (enum) | No | None | |
EntityRecIdSystem record ID of the linked record. The table it belongs to depends on the entity type. | Int64RefRecId | Yes | BOMTable.RecIdBOMVersion.RecIdInventTable.RecIdRouteOpr.RecIdRouteTable.RecIdRouteVersion.RecIdWrkCtrResourceGroup.RecIdWrkCtrTable.RecId | None |
InstructionPoints to the instruction record that is linked. | Int64RefRecId | Yes | Instruction.RecId | 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 | |
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 | |
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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ReferenceIdxReplacement keyEntityType,EntityRecId,InstructionUnique, alternate key.
Relations (9)
Each relation joins InstructionEntityAssociation to another table on the fields shown.
Instruction→InstructionJoin on
Instruction = Instruction.RecIdMany InstructionEntityAssociation records → exactly one Instruction record
InventTable→InventTableJoin on
EntityType = InstructionEntityType::Product,EntityRecId = InventTable.RecIdMany InstructionEntityAssociation records → zero or one InventTable record
WrkCtrTable→WrkCtrTableJoin on
EntityType = InstructionEntityType::WrkCtrTable,EntityRecId = WrkCtrTable.RecIdMany InstructionEntityAssociation records → zero or one WrkCtrTable record
WrkCtrResourceGroup→WrkCtrResourceGroupJoin on
EntityType = InstructionEntityType::WrkCtrResourceGroup,EntityRecId = WrkCtrResourceGroup.RecIdMany InstructionEntityAssociation records → zero or one WrkCtrResourceGroup record
RouteTable→RouteTableJoin on
EntityType = InstructionEntityType::Route,EntityRecId = RouteTable.RecIdMany InstructionEntityAssociation records → zero or one RouteTable record
BOMTable→BOMTableJoin on
EntityType = InstructionEntityType::BOMTable,EntityRecId = BOMTable.RecIdMany InstructionEntityAssociation records → zero or one BOMTable record
RouteVersion→RouteVersionJoin on
EntityType = InstructionEntityType::RouteVersion,EntityRecId = RouteVersion.RecIdMany InstructionEntityAssociation records → zero or one RouteVersion record
RouteOpr→RouteOprJoin on
EntityType = InstructionEntityType::RouteOpr,EntityRecId = RouteOpr.RecIdMany InstructionEntityAssociation records → zero or one RouteOpr record
BOMVersion→BOMVersionJoin on
EntityType = InstructionEntityType::BOMVersion,EntityRecId = BOMVersion.RecIdMany InstructionEntityAssociation records → zero or one BOMVersion record
Get this data out
No public entity reads from InstructionEntityAssociation. Its data is only reachable through the application, a custom entity or a database export.
Need help with InstructionEntityAssociation in a report, an integration or a migration? Talk to Dr Dynamics.