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 descriptionType / EDT / enumMandatoryReferencesIn public entities
RelTableIdSays whether the relation key refers to a service agreement or a service order.Integer
RefTableId
YesSMAAgreementTable.TableIdSMAServiceOrderTable.TableIdNone
RelKeyIdThe ID of the agreement or service order that the task is linked to. It is read together with the relation type.String
SMATableKeyId
YesSMAAgreementTable.AgreementIdSMAServiceOrderTable.ServiceOrderIdNone
ServiceTaskIdThe service task that is linked to the agreement or order.String
SMAServiceTaskId
YesSMAServiceTask.ServiceTaskIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionExternalA free-text note meant to be seen outside the company.String (1000)
SMADescription
NoNone
DescriptionInternalA free-text note meant for internal use.String (1000)
SMADescription
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 (5)

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

  • AgreementTable → SMAAgreementTable

    Join on RelTableId = SMAAgreementTable.TableId, RelKeyId = SMAAgreementTable.AgreementId

    Many SMAServiceTaskRelation records → exactly one SMAAgreementTable record

  • ServiceOrderTable → SMAServiceOrderTable

    Join on RelTableId = SMAServiceOrderTable.TableId, RelKeyId = SMAServiceOrderTable.ServiceOrderId

    Many SMAServiceTaskRelation records → exactly one SMAServiceOrderTable record

  • ServiceTask → SMAServiceTask

    Join on ServiceTaskId = SMAServiceTask.ServiceTaskId

    Many SMAServiceTaskRelation records → exactly one SMAServiceTask record

  • SMAAgreementLine → SMAAgreementLine

    Join on RelTableId = SMAAgreementLine.TableId, RelKeyId = SMAAgreementLine.AgreementId, ServiceTaskId = SMAAgreementLine.ServiceTaskId

    Many SMAServiceTaskRelation records → zero or one SMAAgreementLine record

  • SMAServiceOrderLine → SMAServiceOrderLine

    Join on RelTableId = SMAServiceOrderLine.TableId, RelKeyId = SMAServiceOrderLine.ServiceOrderId, ServiceTaskId = SMAServiceOrderLine.ServiceTaskId

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

Email sales@drdynamics.co.uk