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 descriptionType / EDT / enumMandatoryReferencesIn public entities
EntityTypeKind of record the instruction is linked to, such as product, route, resource or bill of materials.Enum
InstructionEntityType (enum)
NoNone
EntityRecIdSystem record ID of the linked record. The table it belongs to depends on the entity type.Int64
RefRecId
YesBOMTable.RecIdBOMVersion.RecIdInventTable.RecIdRouteOpr.RecIdRouteTable.RecIdRouteVersion.RecIdWrkCtrResourceGroup.RecIdWrkCtrTable.RecIdNone
InstructionPoints to the instruction record that is linked.Int64
RefRecId
YesInstruction.RecIdNone
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
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
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (9)

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

  • Instruction → Instruction

    Join on Instruction = Instruction.RecId

    Many InstructionEntityAssociation records → exactly one Instruction record

  • InventTable → InventTable

    Join on EntityType = InstructionEntityType::Product, EntityRecId = InventTable.RecId

    Many InstructionEntityAssociation records → zero or one InventTable record

  • WrkCtrTable → WrkCtrTable

    Join on EntityType = InstructionEntityType::WrkCtrTable, EntityRecId = WrkCtrTable.RecId

    Many InstructionEntityAssociation records → zero or one WrkCtrTable record

  • WrkCtrResourceGroup → WrkCtrResourceGroup

    Join on EntityType = InstructionEntityType::WrkCtrResourceGroup, EntityRecId = WrkCtrResourceGroup.RecId

    Many InstructionEntityAssociation records → zero or one WrkCtrResourceGroup record

  • RouteTable → RouteTable

    Join on EntityType = InstructionEntityType::Route, EntityRecId = RouteTable.RecId

    Many InstructionEntityAssociation records → zero or one RouteTable record

  • BOMTable → BOMTable

    Join on EntityType = InstructionEntityType::BOMTable, EntityRecId = BOMTable.RecId

    Many InstructionEntityAssociation records → zero or one BOMTable record

  • RouteVersion → RouteVersion

    Join on EntityType = InstructionEntityType::RouteVersion, EntityRecId = RouteVersion.RecId

    Many InstructionEntityAssociation records → zero or one RouteVersion record

  • RouteOpr → RouteOpr

    Join on EntityType = InstructionEntityType::RouteOpr, EntityRecId = RouteOpr.RecId

    Many InstructionEntityAssociation records → zero or one RouteOpr record

  • BOMVersion → BOMVersion

    Join on EntityType = InstructionEntityType::BOMVersion, EntityRecId = BOMVersion.RecId

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

Email sales@drdynamics.co.uk