Table
SMAServiceTaskRelation
Service task relations
Connects a service task to a service agreement or a service order. The key is the relation type, the relation key and the service task. Each record can hold an external note and an internal note.
- Table name
SMAServiceTaskRelation- Module
Service management- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
TableKeyIdx- Replacement key
None- Key fields
RelTableId, RelKeyId, ServiceTaskId- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RelTableIdSays whether the relation key refers to a service agreement or a service order. | IntegerRefTableId | Yes | SMAAgreementTable.TableIdSMAServiceOrderTable.TableId | None |
RelKeyIdThe ID of the agreement or service order that the task is linked to. It is read together with the relation type. | StringSMATableKeyId | Yes | SMAAgreementTable.AgreementIdSMAServiceOrderTable.ServiceOrderId | None |
ServiceTaskIdThe service task that is linked to the agreement or order. | StringSMAServiceTaskId | Yes | SMAServiceTask.ServiceTaskId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionExternalA free-text note meant to be seen outside the company. | String (1000)SMADescription | No | None | |
DescriptionInternalA free-text note meant for internal use. | String (1000)SMADescription | 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)
TableKeyIdxPrimary indexRelTableId,RelKeyId,ServiceTaskIdUnique, alternate key.
Relations (5)
Each relation joins SMAServiceTaskRelation to another table on the fields shown.
AgreementTable→SMAAgreementTableJoin on
RelTableId = SMAAgreementTable.TableId,RelKeyId = SMAAgreementTable.AgreementIdMany SMAServiceTaskRelation records → exactly one SMAAgreementTable record
ServiceOrderTable→SMAServiceOrderTableJoin on
RelTableId = SMAServiceOrderTable.TableId,RelKeyId = SMAServiceOrderTable.ServiceOrderIdMany SMAServiceTaskRelation records → exactly one SMAServiceOrderTable record
ServiceTask→SMAServiceTaskJoin on
ServiceTaskId = SMAServiceTask.ServiceTaskIdMany SMAServiceTaskRelation records → exactly one SMAServiceTask record
SMAAgreementLine→SMAAgreementLineJoin on
RelTableId = SMAAgreementLine.TableId,RelKeyId = SMAAgreementLine.AgreementId,ServiceTaskId = SMAAgreementLine.ServiceTaskIdMany SMAServiceTaskRelation records → zero or one SMAAgreementLine record
SMAServiceOrderLine→SMAServiceOrderLineJoin on
RelTableId = SMAServiceOrderLine.TableId,RelKeyId = SMAServiceOrderLine.ServiceOrderId,ServiceTaskId = SMAServiceOrderLine.ServiceTaskIdMany SMAServiceTaskRelation records → zero or one SMAServiceOrderLine record
Get this data out
No public entity reads from SMAServiceTaskRelation. Its data is only reachable through the application, a custom entity or a database export.
Need help with SMAServiceTaskRelation in a report, an integration or a migration? Talk to Dr Dynamics.