Table

SMAServiceOrderReason

Stage reasons

Holds the reasons recorded against a service order for a stage. Each record names the order, the service stage, the reason code and the type of reason. The type can be stage change, stop, cancel or manual.

Table name
SMAServiceOrderReason
Module
Service management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
SMAManagement
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
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
DescriptionA short text that describes the reason.String (60)
Description
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonIdThe stage reason code. It points to the stage reason code table.String
SMAReasonId
YesSMAReasonTable.ReasonIdNone
ReasonTypeThe kind of reason: stage change, stop, cancel or manual.Enum
SMAServiceOrderReasonType
SMAReasonType (enum)
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
ServiceOrderIdThe service order that this reason belongs to.String
SMAServiceOrderId
YesSMAServiceOrderTable.ServiceOrderIdNone
StageIdThe service stage that this reason relates to.String
SMAStageId
YesSMAStageTable.StageIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • SMAReasonTable → SMAReasonTable

    Join on ReasonId = SMAReasonTable.ReasonId

    Many SMAServiceOrderReason records → exactly one SMAReasonTable record

  • SMAServiceOrderTable → SMAServiceOrderTable

    Join on ServiceOrderId = SMAServiceOrderTable.ServiceOrderId

    Many SMAServiceOrderReason records → exactly one SMAServiceOrderTable record

  • SMAStageTable → SMAStageTable

    Join on StageId = SMAStageTable.StageId

    Many SMAServiceOrderReason records → exactly one SMAStageTable record

Get this data out

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

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

Email sales@drdynamics.co.uk