Table

SMAPreServiceOrderLine

Pre-ServiceOrder Lines

Holds pre-service order lines for a service agreement. The key is the agreement, the line number and the date calculated. Each line can point to a project, service object, service task, time window and worker.

Table name
SMAPreServiceOrderLine
Module
Service management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
SMAManagement
Primary index
AgreementIdx
Replacement key
AgreementIdx
Key fields
AgreementId, AgreementLineNum, DateCalculated
Model
Foundation

Fields (22)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AgreementIdThe service agreement the line belongs to.String
SMAAgreementId
YesSMAAgreementTable.AgreementIdNone
AgreementLineNumLine number on the service agreement.Integer
SMAAgreementLineNum
YesNone
DateCalculatedDate for which the line was calculated.Date
SMADateCalculated
YesNone
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
DateRangeFromStart date of the date range.Date
SMADateRangeFrom
NoNone
DateRangeToEnd date of the date range.Date
SMADateRangeTo
NoNone
GroupBySets how service orders are combined. Values are By service agreement, By service task, By employee and By service object.Enum
SMAGroupServiceOrder (enum)
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
ProjIdThe project linked to the line. Points to a project.String (20)
SMAProjId
NoProjTable.ProjIdNone
ProjTransIdProject transaction ID linked to the line.String (20)
ProjTransIdBase
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
ScopeIdID of the scope linked to the line.String
SMAScopeId
NoNone
ServiceObjectIdThe service object the line refers to.String (20)
SMAServiceObjectId
NoSMAServiceObjectTable.ServiceObjectIdNone
ServiceObjectRelationIdService object relation the line refers to.String (20)
SMAServiceObjectRelationId
NoNone
ServiceOrderIdThe service order linked to the line.String
SMAServiceOrderId
NoSMAServiceOrderTable.ServiceOrderIdNone
ServiceTaskIdThe service task the line refers to.String
SMAServiceTaskId
NoSMAServiceTask.ServiceTaskIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimeAgreementIdThe time window the line refers to.String
SMATimeAgreementId
NoSMATimeAgreement.TimeAgreementIdNone
WorkerThe worker linked to the line. Points to a worker record.Int64
SMAWorker
NoHcmWorker.RecIdNone

Indexes (3)

Relations (9)

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

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many SMAPreServiceOrderLine records → zero or one HcmWorker record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many SMAPreServiceOrderLine records → zero or one ProjTable record

  • SMAAgreementTable → SMAAgreementTable

    Join on AgreementId = SMAAgreementTable.AgreementId

    Many SMAPreServiceOrderLine records → exactly one SMAAgreementTable record

  • SMAServiceObjectRelation → SMAServiceObjectRelation

    Join on ServiceObjectRelationId = SMAServiceObjectRelation.ServiceObjectRelationId

    Many SMAPreServiceOrderLine records → zero or one SMAServiceObjectRelation record

  • SMAServiceObjectTable → SMAServiceObjectTable

    Join on ServiceObjectId = SMAServiceObjectTable.ServiceObjectId

    Many SMAPreServiceOrderLine records → zero or one SMAServiceObjectTable record

  • SMAServiceOrderLine → SMAServiceOrderLine

    Join on DateCalculated = SMAServiceOrderLine.DateCalculated, AgreementLineNum = SMAServiceOrderLine.AgreementLineNum, AgreementId = SMAServiceOrderLine.AgreementId

    One or more SMAPreServiceOrderLine records → exactly one SMAServiceOrderLine record

  • SMAServiceOrderTable → SMAServiceOrderTable

    Join on ServiceOrderId = SMAServiceOrderTable.ServiceOrderId

    Many SMAPreServiceOrderLine records → zero or one SMAServiceOrderTable record

  • SMAServiceTask → SMAServiceTask

    Join on ServiceTaskId = SMAServiceTask.ServiceTaskId

    Many SMAPreServiceOrderLine records → zero or one SMAServiceTask record

  • SMATimeAgreement → SMATimeAgreement

    Join on TimeAgreementId = SMATimeAgreement.TimeAgreementId

    Many SMAPreServiceOrderLine records → zero or one SMATimeAgreement record

Get this data out

No public entity reads from SMAPreServiceOrderLine. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk