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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionA short text that describes the reason. | String (60)Description | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonIdThe stage reason code. It points to the stage reason code table. | StringSMAReasonId | Yes | SMAReasonTable.ReasonId | None |
ReasonTypeThe kind of reason: stage change, stop, cancel or manual. | EnumSMAServiceOrderReasonTypeSMAReasonType (enum) | 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 | |
ServiceOrderIdThe service order that this reason belongs to. | StringSMAServiceOrderId | Yes | SMAServiceOrderTable.ServiceOrderId | None |
StageIdThe service stage that this reason relates to. | StringSMAStageId | Yes | SMAStageTable.StageId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ServiceOrderReasonIdxStageId,ReasonId,ServiceOrderIdNot unique.
Relations (3)
Each relation joins SMAServiceOrderReason to another table on the fields shown.
SMAReasonTable→SMAReasonTableJoin on
ReasonId = SMAReasonTable.ReasonIdMany SMAServiceOrderReason records → exactly one SMAReasonTable record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
ServiceOrderId = SMAServiceOrderTable.ServiceOrderIdMany SMAServiceOrderReason records → exactly one SMAServiceOrderTable record
SMAStageTable→SMAStageTableJoin on
StageId = SMAStageTable.StageIdMany 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.